From 96acb48334aaed6c81bc357818bf5a7525145791 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 18 Oct 2018 14:42:07 +0100 Subject: mantis 7391: deliver llregionSayTo to all scripts on prim that match target specs --- .../Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs index a5203ea..99e50ac 100644 --- a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs @@ -442,15 +442,12 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm // Dont process if this message is from yourself! if (liHostID.Equals(id)) continue; - + if (!liHostID.Equals(target)) + continue; if (m_scene.GetSceneObjectPart(liHostID) == null) continue; - if (liHostID.Equals(target)) - { - QueueMessage(new ListenerInfo(li, name, id, msg)); - break; - } + QueueMessage(new ListenerInfo(li, name, id, msg)); } } -- cgit v1.1