aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules')
-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 }