aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorAdam Frisby2008-02-26 11:32:46 +0000
committerAdam Frisby2008-02-26 11:32:46 +0000
commita2c639d6688ad8957027f8b91417fa4163912c10 (patch)
treefefe7f16121ded87d2e78c9364a019938b62620a /OpenSim/Region
parent* Updated Voice Chat Server, added support for voice to cross region boundari... (diff)
downloadopensim-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 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Modules/VoiceChat/VoiceChatServer.cs15
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()