mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
This commit is contained in:
@@ -61,18 +61,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
{
|
||||
m_config = config.Configs["Chat"];
|
||||
|
||||
if (null == m_config)
|
||||
if (m_config != null)
|
||||
{
|
||||
m_log.Info("[CHAT]: no config found, plugin disabled");
|
||||
m_enabled = false;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_config.GetBoolean("enabled", true))
|
||||
{
|
||||
m_log.Info("[CHAT]: plugin disabled by configuration");
|
||||
m_enabled = false;
|
||||
return;
|
||||
if (!m_config.GetBoolean("enabled", true))
|
||||
{
|
||||
m_log.Info("[CHAT]: plugin disabled by configuration");
|
||||
m_enabled = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
m_whisperdistance = config.Configs["Chat"].GetInt("whisper_distance", m_whisperdistance);
|
||||
@@ -392,4 +388,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user