aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/ChatModule.cs
diff options
context:
space:
mode:
authorMW2007-10-22 14:20:59 +0000
committerMW2007-10-22 14:20:59 +0000
commit22e330c1a0ec7ae9b2055b2ba42f08506cda6067 (patch)
tree9d3134bb03bf2940928ba28d7f57822ee621b213 /OpenSim/Region/Environment/Modules/ChatModule.cs
parentHopefully made it so ChatModule and InstantMessageModule are now running in S... (diff)
downloadopensim-SC_OLD-22e330c1a0ec7ae9b2055b2ba42f08506cda6067.zip
opensim-SC_OLD-22e330c1a0ec7ae9b2055b2ba42f08506cda6067.tar.gz
opensim-SC_OLD-22e330c1a0ec7ae9b2055b2ba42f08506cda6067.tar.bz2
opensim-SC_OLD-22e330c1a0ec7ae9b2055b2ba42f08506cda6067.tar.xz
attempt to fix the muliple repeat problem (that sdague is getting) in the IRC chat bridge code.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/ChatModule.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/ChatModule.cs13
1 files changed, 8 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs
index abd770a..58b9d7b 100644
--- a/OpenSim/Region/Environment/Modules/ChatModule.cs
+++ b/OpenSim/Region/Environment/Modules/ChatModule.cs
@@ -344,11 +344,14 @@ namespace OpenSim.Region.Environment.Modules
344 string mess = inputLine.Substring(inputLine.IndexOf(m_channel)); 344 string mess = inputLine.Substring(inputLine.IndexOf(m_channel));
345 foreach (Scene m_scene in m_scenes) 345 foreach (Scene m_scene in m_scenes)
346 { 346 {
347 m_scene.Broadcast(delegate(IClientAPI client) 347 m_scene.ForEachScenePresence(delegate(ScenePresence avatar)
348 { 348 {
349 client.SendChatMessage( 349 if (!avatar.IsChildAgent)
350 Helpers.StringToField(mess), 255, pos, "IRC:", 350 {
351 LLUUID.Zero); 351 avatar.ControllingClient.SendChatMessage(
352 Helpers.StringToField(mess), 255, pos, "IRC:",
353 LLUUID.Zero);
354 }
352 }); 355 });
353 } 356 }
354 } 357 }