aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorMike Mazur2009-05-31 11:50:42 +0000
committerMike Mazur2009-05-31 11:50:42 +0000
commit07a94fdf89e88e88513c61f7f67544e49ddcd9eb (patch)
treea46f5bfc3c378a6016883ea6d4b59e85f6c85f82 /OpenSim/Region
parentSlashing trailing slashes. (diff)
downloadopensim-SC_OLD-07a94fdf89e88e88513c61f7f67544e49ddcd9eb.zip
opensim-SC_OLD-07a94fdf89e88e88513c61f7f67544e49ddcd9eb.tar.gz
opensim-SC_OLD-07a94fdf89e88e88513c61f7f67544e49ddcd9eb.tar.bz2
opensim-SC_OLD-07a94fdf89e88e88513c61f7f67544e49ddcd9eb.tar.xz
Fix IRCd init check for config section
The IRCStackModule used Nini.Config.ConfigCollection.Contains() to determine whether the "IRCd" section was present in the config. This ConfigCollection, however, stores an ArrayList of IConfig objects, not strings, so calling Contains("IRCd") always returns false since "IRCd" is a string, not an IConfig object.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs
index 9e3e1c7..5c8bfc6 100644
--- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs
+++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/IRCStackModule.cs
@@ -8,7 +8,7 @@ using OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server;
8 8
9namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView 9namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView
10{ 10{
11 public class IRCStackModule : IRegionModule 11 public class IRCStackModule : IRegionModule
12 { 12 {
13 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 13 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
14 14
@@ -19,7 +19,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView
19 19
20 public void Initialise(Scene scene, IConfigSource source) 20 public void Initialise(Scene scene, IConfigSource source)
21 { 21 {
22 if (source.Configs.Contains("IRCd") && 22 if (null != source.Configs["IRCd"] &&
23 source.Configs["IRCd"].GetBoolean("Enabled",false)) 23 source.Configs["IRCd"].GetBoolean("Enabled",false))
24 { 24 {
25 m_scene = scene; 25 m_scene = scene;
@@ -48,7 +48,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView
48 48
49 public void Close() 49 public void Close()
50 { 50 {
51 51
52 } 52 }
53 53
54 public string Name 54 public string Name