diff options
author | Adam Frisby | 2007-10-19 23:56:51 +0000 |
---|---|---|
committer | Adam Frisby | 2007-10-19 23:56:51 +0000 |
commit | 2afecae39c00c2de6ad3296146e235701b3d5cf9 (patch) | |
tree | c17fd07162e3228fda1d3063615255d2d81aa80d | |
parent | * Whisper, Say and Shout distances are now configurable (what the hell!) (diff) | |
download | opensim-SC_OLD-2afecae39c00c2de6ad3296146e235701b3d5cf9.zip opensim-SC_OLD-2afecae39c00c2de6ad3296146e235701b3d5cf9.tar.gz opensim-SC_OLD-2afecae39c00c2de6ad3296146e235701b3d5cf9.tar.bz2 opensim-SC_OLD-2afecae39c00c2de6ad3296146e235701b3d5cf9.tar.xz |
* IRC ChatModule extension should now be more stable.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/ChatModule.cs | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs index 518454c..a438ae6 100644 --- a/OpenSim/Region/Environment/Modules/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/ChatModule.cs | |||
@@ -188,7 +188,8 @@ namespace OpenSim.Region.Environment.Modules | |||
188 | }); | 188 | }); |
189 | } | 189 | } |
190 | } | 190 | } |
191 | } | 191 | } |
192 | Thread.Sleep(50); | ||
192 | } | 193 | } |
193 | } | 194 | } |
194 | 195 | ||
@@ -245,10 +246,20 @@ namespace OpenSim.Region.Environment.Modules | |||
245 | m_log.Verbose("CHAT", fromName + " (" + e.Channel + " @ " + scene.RegionInfo.RegionName + ") " + typeName + ": " + e.Message); | 246 | m_log.Verbose("CHAT", fromName + " (" + e.Channel + " @ " + scene.RegionInfo.RegionName + ") " + typeName + ": " + e.Message); |
246 | 247 | ||
247 | if (connected) | 248 | if (connected) |
248 | { | 249 | { |
249 | m_ircWriter.WriteLine("PRIVMSG " + m_channel + " :" + "<" + fromName + " in " + scene.RegionInfo.RegionName + ">: " + | 250 | try |
250 | e.Message); | 251 | { |
251 | m_ircWriter.Flush(); | 252 | m_ircWriter.WriteLine("PRIVMSG " + m_channel + " :" + "<" + fromName + " in " + scene.RegionInfo.RegionName + ">: " + |
253 | e.Message); | ||
254 | m_ircWriter.Flush(); | ||
255 | } | ||
256 | catch (IOException) | ||
257 | { | ||
258 | m_log.Error("IRC","Disconnected from IRC server."); | ||
259 | listener.Abort(); | ||
260 | pingSender.Abort(); | ||
261 | connected = false; | ||
262 | } | ||
252 | } | 263 | } |
253 | 264 | ||
254 | if (e.Channel == 0) | 265 | if (e.Channel == 0) |