again chat echos, check repeats uncondicionally

LSLKeyTest
UbitUmarov 2015-11-24 15:12:39 +00:00
parent 08d061d201
commit a0c3297b37
1 changed files with 5 additions and 2 deletions

View File

@ -294,9 +294,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
s.ForEachScenePresence( s.ForEachScenePresence(
delegate(ScenePresence presence) delegate(ScenePresence presence)
{ {
if (destination != UUID.Zero && if (receiverIDs.Contains(presence.UUID))
(presence.UUID != destination || receiverIDs.Contains(presence.UUID))) return; // already sent to this presence
if (destination != UUID.Zero && presence.UUID != destination)
return; return;
ILandObject Presencecheck = s.LandChannel.GetLandObject(presence.AbsolutePosition.X, presence.AbsolutePosition.Y); ILandObject Presencecheck = s.LandChannel.GetLandObject(presence.AbsolutePosition.X, presence.AbsolutePosition.Y);
if (Presencecheck != null) if (Presencecheck != null)
{ {