aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-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)