aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
authorJeff Ames2007-12-06 01:41:41 +0000
committerJeff Ames2007-12-06 01:41:41 +0000
commit4bde56457f574060c1aaaca8effba1f6fe00b6c7 (patch)
tree60c081be8f3d00da63940efd81ce88de6fe1f2a5 /OpenSim/Region/Environment/Modules
parentSome refactoring of the RestObjectPoster (and related classes). (diff)
downloadopensim-SC-4bde56457f574060c1aaaca8effba1f6fe00b6c7.zip
opensim-SC-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.gz
opensim-SC-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.bz2
opensim-SC-4bde56457f574060c1aaaca8effba1f6fe00b6c7.tar.xz
removed some duplicate hard-coded port numbers. changed ports to uint.
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-rw-r--r--OpenSim/Region/Environment/Modules/ChatModule.cs6
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);