diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/ChatModule.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/ChatModule.cs | 14 |
1 files changed, 7 insertions, 7 deletions
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 | |||
62 | { | 62 | { |
63 | lock (m_syncInit) | 63 | lock (m_syncInit) |
64 | { | 64 | { |
65 | if (!m_scenes.Contains(scene)) | ||
66 | { | ||
67 | m_scenes.Add(scene); | ||
68 | scene.EventManager.OnNewClient += NewClient; | ||
69 | scene.RegisterModuleInterface<ISimChat>(this); | ||
70 | } | ||
71 | |||
65 | // wrap this in a try block so that defaults will work if | 72 | // wrap this in a try block so that defaults will work if |
66 | // the config file doesn't specify otherwise. | 73 | // the config file doesn't specify otherwise. |
67 | try | 74 | try |
@@ -82,13 +89,6 @@ namespace OpenSim.Region.Environment.Modules | |||
82 | { | 89 | { |
83 | } | 90 | } |
84 | 91 | ||
85 | if (!m_scenes.Contains(scene)) | ||
86 | { | ||
87 | m_scenes.Add(scene); | ||
88 | scene.EventManager.OnNewClient += NewClient; | ||
89 | scene.RegisterModuleInterface<ISimChat>(this); | ||
90 | } | ||
91 | |||
92 | // setup IRC Relay | 92 | // setup IRC Relay |
93 | if (m_irc == null) { m_irc = new IRCChatModule(config); } | 93 | if (m_irc == null) { m_irc = new IRCChatModule(config); } |
94 | if (m_irc_connector == null) | 94 | if (m_irc_connector == null) |