From 1d3d739da4607df875b7fae85664055468486e11 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Tue, 27 May 2008 13:16:44 +0000 Subject: [PATCH] fixes a CTB when IRCBridgeModule is not configured. --- .../Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs index 156c2fd448..c8d5f80d93 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs @@ -85,7 +85,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat m_log.Info("[IRC] module not configured"); return; } - + lock (m_syncInit) { @@ -125,7 +125,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat public void PostInitialise() { - if (!m_irc.Enabled) return; + if (null == m_irc || !m_irc.Enabled) return; try {