diff options
author | Adam Frisby | 2008-02-26 11:32:46 +0000 |
---|---|---|
committer | Adam Frisby | 2008-02-26 11:32:46 +0000 |
commit | a2c639d6688ad8957027f8b91417fa4163912c10 (patch) | |
tree | fefe7f16121ded87d2e78c9364a019938b62620a /OpenSim/Region/Environment/Modules | |
parent | * Updated Voice Chat Server, added support for voice to cross region boundari... (diff) | |
download | opensim-SC_OLD-a2c639d6688ad8957027f8b91417fa4163912c10.zip opensim-SC_OLD-a2c639d6688ad8957027f8b91417fa4163912c10.tar.gz opensim-SC_OLD-a2c639d6688ad8957027f8b91417fa4163912c10.tar.bz2 opensim-SC_OLD-a2c639d6688ad8957027f8b91417fa4163912c10.tar.xz |
* Small voice chat fix
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/VoiceChat/VoiceChatServer.cs | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Modules/VoiceChat/VoiceChatServer.cs b/OpenSim/Region/Environment/Modules/VoiceChat/VoiceChatServer.cs index 3f6e346..ad42216 100644 --- a/OpenSim/Region/Environment/Modules/VoiceChat/VoiceChatServer.cs +++ b/OpenSim/Region/Environment/Modules/VoiceChat/VoiceChatServer.cs | |||
@@ -34,18 +34,21 @@ namespace OpenSim.Region.Environment.Modules.VoiceChat | |||
34 | 34 | ||
35 | public void Initialise(Scene scene, Nini.Config.IConfigSource source) | 35 | public void Initialise(Scene scene, Nini.Config.IConfigSource source) |
36 | { | 36 | { |
37 | if (!m_scenes.Contains(scene)) | ||
38 | m_scenes.Add(scene); | ||
39 | |||
40 | scene.EventManager.OnNewClient += NewClient; | ||
41 | scene.EventManager.OnRemovePresence += RemovePresence; | ||
42 | |||
43 | try | 37 | try |
44 | { | 38 | { |
45 | m_enabled = source.Configs["Voice"].GetBoolean("enabled", m_enabled); | 39 | m_enabled = source.Configs["Voice"].GetBoolean("enabled", m_enabled); |
46 | } | 40 | } |
47 | catch (Exception) | 41 | catch (Exception) |
48 | { } | 42 | { } |
43 | |||
44 | if (m_enabled) | ||
45 | { | ||
46 | if (!m_scenes.Contains(scene)) | ||
47 | m_scenes.Add(scene); | ||
48 | |||
49 | scene.EventManager.OnNewClient += NewClient; | ||
50 | scene.EventManager.OnRemovePresence += RemovePresence; | ||
51 | } | ||
49 | } | 52 | } |
50 | 53 | ||
51 | public void PostInitialise() | 54 | public void PostInitialise() |