a few small changes

This commit is contained in:
MW
2008-04-01 13:09:29 +00:00
parent 731dcbad5b
commit f43e077150
6 changed files with 68 additions and 59 deletions

View File

@@ -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<ISimChat>(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<ISimChat>(this);
}
// setup IRC Relay
if (m_irc == null) { m_irc = new IRCChatModule(config); }
if (m_irc_connector == null)