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.0.6.6-post-fixes
parent
4927bc60a2
commit
07a94fdf89
|
@ -19,7 +19,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView
|
|||
|
||||
public void Initialise(Scene scene, IConfigSource source)
|
||||
{
|
||||
if (source.Configs.Contains("IRCd") &&
|
||||
if (null != source.Configs["IRCd"] &&
|
||||
source.Configs["IRCd"].GetBoolean("Enabled",false))
|
||||
{
|
||||
m_scene = scene;
|
||||
|
|
Loading…
Reference in New Issue