diff options
author | Dahlia Trimble | 2009-01-18 10:50:53 +0000 |
---|---|---|
committer | Dahlia Trimble | 2009-01-18 10:50:53 +0000 |
commit | 37b63636eecabe3569f09781f4bb5b319cd85e24 (patch) | |
tree | a9f816b731d20d7083f67c07d3ed970b79ef21b6 /OpenSim/Region/Environment/Modules/Avatar/Chat/IRCConnector.cs | |
parent | Getting rid of the CheckRegion call during TPs. This seems to be not just use... (diff) | |
download | opensim-SC-37b63636eecabe3569f09781f4bb5b319cd85e24.zip opensim-SC-37b63636eecabe3569f09781f4bb5b319cd85e24.tar.gz opensim-SC-37b63636eecabe3569f09781f4bb5b319cd85e24.tar.bz2 opensim-SC-37b63636eecabe3569f09781f4bb5b319cd85e24.tar.xz |
Added an optional password for the IRC module
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Avatar/Chat/IRCConnector.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Avatar/Chat/IRCConnector.cs | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCConnector.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCConnector.cs index 1dec9a5..e1c0ac4 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCConnector.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCConnector.cs | |||
@@ -146,6 +146,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat | |||
146 | get { return m_server; } | 146 | get { return m_server; } |
147 | set { m_server = value; } | 147 | set { m_server = value; } |
148 | } | 148 | } |
149 | private string m_password = null; | ||
150 | public string Password | ||
151 | { | ||
152 | get { return m_password; } | ||
153 | set { m_password = value; } | ||
154 | } | ||
149 | 155 | ||
150 | private string m_user = "USER OpenSimBot 8 * :I'm an OpenSim to IRC bot"; | 156 | private string m_user = "USER OpenSimBot 8 * :I'm an OpenSim to IRC bot"; |
151 | public string User | 157 | public string User |
@@ -183,6 +189,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat | |||
183 | // Setup IRC session parameters | 189 | // Setup IRC session parameters |
184 | 190 | ||
185 | m_server = cs.Server; | 191 | m_server = cs.Server; |
192 | m_password = cs.Password; | ||
186 | m_baseNick = cs.BaseNickname; | 193 | m_baseNick = cs.BaseNickname; |
187 | m_randomizeNick = cs.RandomizeNickname; | 194 | m_randomizeNick = cs.RandomizeNickname; |
188 | m_ircChannel = cs.IrcChannel; | 195 | m_ircChannel = cs.IrcChannel; |
@@ -346,7 +353,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat | |||
346 | ThreadTracker.Add(m_listener); | 353 | ThreadTracker.Add(m_listener); |
347 | 354 | ||
348 | // This is the message order recommended by RFC 2812 | 355 | // This is the message order recommended by RFC 2812 |
349 | 356 | if (m_password != null) | |
357 | m_writer.WriteLine(String.Format("PASS {0}", m_password)); | ||
350 | m_writer.WriteLine(String.Format("NICK {0}", m_nick)); | 358 | m_writer.WriteLine(String.Format("NICK {0}", m_nick)); |
351 | m_writer.Flush(); | 359 | m_writer.Flush(); |
352 | m_writer.WriteLine(m_user); | 360 | m_writer.WriteLine(m_user); |