diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/ChatModule.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs index be38baf..c93804f 100644 --- a/OpenSim/Region/Environment/Modules/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/ChatModule.cs | |||
@@ -265,7 +265,7 @@ namespace OpenSim.Region.Environment.Modules | |||
265 | internal class IRCChatModule | 265 | internal class IRCChatModule |
266 | { | 266 | { |
267 | private string m_server = null; | 267 | private string m_server = null; |
268 | private int m_port = 6668; | 268 | private uint m_port = 6668; |
269 | private string m_user = "USER OpenSimBot 8 * :I'm a OpenSim to irc bot"; | 269 | private string m_user = "USER OpenSimBot 8 * :I'm a OpenSim to irc bot"; |
270 | private string m_nick = null; | 270 | private string m_nick = null; |
271 | private string m_channel = null; | 271 | private string m_channel = null; |
@@ -296,7 +296,7 @@ namespace OpenSim.Region.Environment.Modules | |||
296 | m_server = config.Configs["IRC"].GetString("server"); | 296 | m_server = config.Configs["IRC"].GetString("server"); |
297 | m_nick = config.Configs["IRC"].GetString("nick"); | 297 | m_nick = config.Configs["IRC"].GetString("nick"); |
298 | m_channel = config.Configs["IRC"].GetString("channel"); | 298 | m_channel = config.Configs["IRC"].GetString("channel"); |
299 | m_port = config.Configs["IRC"].GetInt("port", m_port); | 299 | m_port = (uint) config.Configs["IRC"].GetInt("port", (int) m_port); |
300 | m_user = config.Configs["IRC"].GetString("username", m_user); | 300 | m_user = config.Configs["IRC"].GetString("username", m_user); |
301 | if (m_server != null && m_nick != null && m_channel != null) | 301 | if (m_server != null && m_nick != null && m_channel != null) |
302 | { | 302 | { |
@@ -316,7 +316,7 @@ namespace OpenSim.Region.Environment.Modules | |||
316 | { | 316 | { |
317 | m_scenes = scenes; | 317 | m_scenes = scenes; |
318 | 318 | ||
319 | m_tcp = new TcpClient(m_server, m_port); | 319 | m_tcp = new TcpClient(m_server, (int) m_port); |
320 | m_log.Verbose("IRC", "Connecting..."); | 320 | m_log.Verbose("IRC", "Connecting..."); |
321 | m_stream = m_tcp.GetStream(); | 321 | m_stream = m_tcp.GetStream(); |
322 | m_log.Verbose("IRC", "Connected to " + m_server); | 322 | m_log.Verbose("IRC", "Connected to " + m_server); |