adds a default value of true to the new IRC bridge configuration option "nicknum" to provide backwards compatibility for existing OpenSim.ini files

0.6.0-stable
Dahlia Trimble 2008-07-14 09:16:07 +00:00
parent 8258c320db
commit d262fb5650
1 changed files with 5 additions and 3 deletions

View File

@ -400,6 +400,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
// [IRC]
// server = chat.freenode.net
// nick = OSimBot_mysim
// nicknum = true
// ;nicknum set to true appends a 2 digit random number to the nick
// ;username = USER OpenSimBot 8 * :I'm a OpenSim to irc bot
// ; username is the IRC command line sent
// ; USER <irc_user> <visible=8,invisible=0> * : <IRC_realname>
@ -422,7 +424,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
m_server = config.Configs["IRC"].GetString("server");
m_nick = config.Configs["IRC"].GetString("nick");
m_basenick = m_nick;
m_nrnick = config.Configs["IRC"].GetBoolean("nicknum");
m_nrnick = config.Configs["IRC"].GetBoolean("nicknum", true);
m_channel = config.Configs["IRC"].GetString("channel");
m_port = (uint)config.Configs["IRC"].GetInt("port", (int)m_port);
m_user = config.Configs["IRC"].GetString("username", m_user);
@ -436,9 +438,9 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
m_enabled = true;
}
}
catch (Exception)
catch (Exception e)
{
m_log.Info("[CHAT]: No IRC config information, skipping IRC bridge configuration");
m_log.Info("[CHAT]: Incomplete IRC config information, skipping IRC bridge configuration");
}
}