Add a "user" config option to the IRC module config. Like all other IRC

config options, this has NO default, if you use the IRC module, you MUST
add this setting to your ini file.
0.6.5-rc1
Melanie Thielker 2009-04-01 12:28:46 +00:00
parent 76ca096384
commit a1fe54baa0
2 changed files with 3 additions and 1 deletions

View File

@ -60,7 +60,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
internal string IrcChannel = null; internal string IrcChannel = null;
internal string BaseNickname = "OSimBot"; internal string BaseNickname = "OSimBot";
internal uint Port = 6667; internal uint Port = 6667;
internal string User = "USER OpenSimBot 8 * :I'm an OpenSim to IRC bot"; internal string User = null;
internal bool ClientReporting = true; internal bool ClientReporting = true;
internal bool RelayChat = true; internal bool RelayChat = true;
@ -163,6 +163,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
m_log.DebugFormat("[IRC-Channel-{0}] Server : <{1}>", cs.idn, cs.Server); m_log.DebugFormat("[IRC-Channel-{0}] Server : <{1}>", cs.idn, cs.Server);
cs.Password = Substitute(rs, config.GetString("password", null)); cs.Password = Substitute(rs, config.GetString("password", null));
// probably not a good idea to put a password in the log file // probably not a good idea to put a password in the log file
cs.User = Substitute(rs, config.GetString("user", null));
cs.IrcChannel = Substitute(rs, config.GetString("channel", null)); cs.IrcChannel = Substitute(rs, config.GetString("channel", null));
m_log.DebugFormat("[IRC-Channel-{0}] IrcChannel : <{1}>", cs.idn, cs.IrcChannel); m_log.DebugFormat("[IRC-Channel-{0}] IrcChannel : <{1}>", cs.idn, cs.IrcChannel);
cs.Port = Convert.ToUInt32(Substitute(rs, config.GetString("port", Convert.ToString(cs.Port)))); cs.Port = Convert.ToUInt32(Substitute(rs, config.GetString("port", Convert.ToString(cs.Port))));

View File

@ -604,6 +604,7 @@
;password = mypass ;password = mypass
;nick = OpenSimBotNameProbablyMakeThisShorter ;nick = OpenSimBotNameProbablyMakeThisShorter
;channel = #the_irc_channel_you_want_to_connect_to ;channel = #the_irc_channel_you_want_to_connect_to
;user = "OpenSimBot 8 * :I'm an OpenSim to IRC bot"
;port = 6667 ;port = 6667
;; channel to listen for configuration commands ;; channel to listen for configuration commands
;commands_enabled = false ;commands_enabled = false