aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs21
1 files changed, 11 insertions, 10 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
index d83713b..fd6202a 100644
--- a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
@@ -310,18 +310,19 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
310 } 310 }
311 if (c.Sender == null || Presencecheck.IsEitherBannedOrRestricted(c.Sender.AgentId) != true) 311 if (c.Sender == null || Presencecheck.IsEitherBannedOrRestricted(c.Sender.AgentId) != true)
312 { 312 {
313 if (destination != UUID.Zero) 313 if (TrySendChatMessage(presence, fromPos, regionPos, fromID,
314 { 314 ownerID, fromNamePrefix + fromName, c.Type,
315 if (TrySendChatMessage(presence, fromPos, regionPos, fromID, ownerID, fromNamePrefix + fromName, c.Type, message, sourceType, true)) 315 message, sourceType, (destination != UUID.Zero)))
316 receiverIDs.Add(presence.UUID); 316 receiverIDs.Add(presence.UUID);
317 }
318 else
319 {
320 if (TrySendChatMessage(presence, fromPos, regionPos, fromID, ownerID, fromNamePrefix + fromName, c.Type, message, sourceType, false))
321 receiverIDs.Add(presence.UUID);
322 }
323 } 317 }
324 } 318 }
319 else if(!checkParcelHide && (presence.IsChildAgent))
320 {
321 if (TrySendChatMessage(presence, fromPos, regionPos, fromID,
322 ownerID, fromNamePrefix + fromName, c.Type,
323 message, sourceType, (destination != UUID.Zero)))
324 receiverIDs.Add(presence.UUID);
325 }
325 } 326 }
326 ); 327 );
327 } 328 }