Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
commit
a6012a3fae
|
@ -61,19 +61,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||||
{
|
{
|
||||||
m_config = config.Configs["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))
|
if (!m_config.GetBoolean("enabled", true))
|
||||||
{
|
{
|
||||||
m_log.Info("[CHAT]: plugin disabled by configuration");
|
m_log.Info("[CHAT]: plugin disabled by configuration");
|
||||||
m_enabled = false;
|
m_enabled = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_whisperdistance = config.Configs["Chat"].GetInt("whisper_distance", m_whisperdistance);
|
m_whisperdistance = config.Configs["Chat"].GetInt("whisper_distance", m_whisperdistance);
|
||||||
m_saydistance = config.Configs["Chat"].GetInt("say_distance", m_saydistance);
|
m_saydistance = config.Configs["Chat"].GetInt("say_distance", m_saydistance);
|
||||||
|
|
Loading…
Reference in New Issue