aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs
index a31d620..156c2fd 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs
@@ -60,12 +60,35 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
60 internal object m_syncInit = new object(); 60 internal object m_syncInit = new object();
61 internal object m_syncLogout = new object(); 61 internal object m_syncLogout = new object();
62 62
63 private IConfig m_config;
64
63 #region IRegionModule Members 65 #region IRegionModule Members
64 66
65 public void Initialise(Scene scene, IConfigSource config) 67 public void Initialise(Scene scene, IConfigSource config)
66 { 68 {
69 try
70 {
71 if ((m_config = config.Configs["IRC"]) == null)
72 {
73 m_log.InfoFormat("[IRC] module not configured");
74 return;
75 }
76
77 if (!m_config.GetBoolean("enabled", false))
78 {
79 m_log.InfoFormat("[IRC] module disabled in configuration");
80 return;
81 }
82 }
83 catch (Exception)
84 {
85 m_log.Info("[IRC] module not configured");
86 return;
87 }
88
67 lock (m_syncInit) 89 lock (m_syncInit)
68 { 90 {
91
69 if (!m_scenes.Contains(scene)) 92 if (!m_scenes.Contains(scene))
70 { 93 {
71 m_scenes.Add(scene); 94 m_scenes.Add(scene);