mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
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.
This commit is contained in:
@@ -60,7 +60,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
internal string IrcChannel = null;
|
||||
internal string BaseNickname = "OSimBot";
|
||||
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 RelayChat = true;
|
||||
@@ -163,6 +163,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Chat
|
||||
m_log.DebugFormat("[IRC-Channel-{0}] Server : <{1}>", cs.idn, cs.Server);
|
||||
cs.Password = Substitute(rs, config.GetString("password", null));
|
||||
// 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));
|
||||
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))));
|
||||
|
||||
@@ -604,6 +604,7 @@
|
||||
;password = mypass
|
||||
;nick = OpenSimBotNameProbablyMakeThisShorter
|
||||
;channel = #the_irc_channel_you_want_to_connect_to
|
||||
;user = "OpenSimBot 8 * :I'm an OpenSim to IRC bot"
|
||||
;port = 6667
|
||||
;; channel to listen for configuration commands
|
||||
;commands_enabled = false
|
||||
|
||||
Reference in New Issue
Block a user