aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAdam Frisby2007-10-19 19:30:22 +0000
committerAdam Frisby2007-10-19 19:30:22 +0000
commitaaaa3c6835e6858cb95c9b57c2e4b390340bc062 (patch)
tree3374323a5a188fbee24ab2935c977df9dba235de
parent* Instant Message functionality moved into a Region Modules (diff)
downloadopensim-SC_OLD-aaaa3c6835e6858cb95c9b57c2e4b390340bc062.zip
opensim-SC_OLD-aaaa3c6835e6858cb95c9b57c2e4b390340bc062.tar.gz
opensim-SC_OLD-aaaa3c6835e6858cb95c9b57c2e4b390340bc062.tar.bz2
opensim-SC_OLD-aaaa3c6835e6858cb95c9b57c2e4b390340bc062.tar.xz
* Test thy commits! (oops, sorry!)
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/InstantMessageModule.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/InstantMessageModule.cs b/OpenSim/Region/Environment/Modules/InstantMessageModule.cs
index 412d8c3..dbd2434 100644
--- a/OpenSim/Region/Environment/Modules/InstantMessageModule.cs
+++ b/OpenSim/Region/Environment/Modules/InstantMessageModule.cs
@@ -35,16 +35,18 @@ namespace OpenSim.Region.Environment.Modules
35{ 35{
36 public class InstantMessageModule : IRegionModule 36 public class InstantMessageModule : IRegionModule
37 { 37 {
38 private List<Scene> m_scenes; 38 private List<Scene> m_scenes = new List<Scene>();
39 private LogBase m_log; 39 private LogBase m_log;
40 40
41 public void Initialise(Scene scene) 41 public void Initialise(Scene scene)
42 { 42 {
43 if (!m_scenes.Contains(scene)) 43 if (!m_scenes.Contains(scene))
44 {
44 m_scenes.Add(scene); 45 m_scenes.Add(scene);
45 46
46 scene.EventManager.OnNewClient += OnNewClient; 47 scene.EventManager.OnNewClient += OnNewClient;
47 m_log = OpenSim.Framework.Console.MainLog.Instance; 48 m_log = OpenSim.Framework.Console.MainLog.Instance;
49 }
48 } 50 }
49 51
50 void OnNewClient(OpenSim.Framework.Interfaces.IClientAPI client) 52 void OnNewClient(OpenSim.Framework.Interfaces.IClientAPI client)