attempt to fix the muliple repeat problem (that sdague is getting) in the IRC chat bridge code.

afrisby
MW 2007-10-22 14:20:59 +00:00
parent 155005cba6
commit 22e330c1a0
2 changed files with 211 additions and 208 deletions

View File

@ -344,11 +344,14 @@ namespace OpenSim.Region.Environment.Modules
string mess = inputLine.Substring(inputLine.IndexOf(m_channel));
foreach (Scene m_scene in m_scenes)
{
m_scene.Broadcast(delegate(IClientAPI client)
m_scene.ForEachScenePresence(delegate(ScenePresence avatar)
{
client.SendChatMessage(
Helpers.StringToField(mess), 255, pos, "IRC:",
LLUUID.Zero);
if (!avatar.IsChildAgent)
{
avatar.ControllingClient.SendChatMessage(
Helpers.StringToField(mess), 255, pos, "IRC:",
LLUUID.Zero);
}
});
}
}