From f43e077150d39b454bd66d43a72736a75614a721 Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 1 Apr 2008 13:09:29 +0000 Subject: a few small changes --- OpenSim/Region/Environment/Modules/ChatModule.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/ChatModule.cs') diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs index ab6b791..08c0a11 100644 --- a/OpenSim/Region/Environment/Modules/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/ChatModule.cs @@ -62,6 +62,13 @@ namespace OpenSim.Region.Environment.Modules { lock (m_syncInit) { + if (!m_scenes.Contains(scene)) + { + m_scenes.Add(scene); + scene.EventManager.OnNewClient += NewClient; + scene.RegisterModuleInterface(this); + } + // wrap this in a try block so that defaults will work if // the config file doesn't specify otherwise. try @@ -82,13 +89,6 @@ namespace OpenSim.Region.Environment.Modules { } - if (!m_scenes.Contains(scene)) - { - m_scenes.Add(scene); - scene.EventManager.OnNewClient += NewClient; - scene.RegisterModuleInterface(this); - } - // setup IRC Relay if (m_irc == null) { m_irc = new IRCChatModule(config); } if (m_irc_connector == null) -- cgit v1.1