Stop broadcasting non 0/DEBUG ChatTypeEnum.Region messages to all avatars

This allows non public/debug region wide messages to be sent to scripts but not be broadast to avatars
viewer-2-initial-appearance
Justin Clark-Casey (justincc) 2010-09-18 01:43:22 +01:00
parent 4327c795f8
commit 889923841c
1 changed files with 1 additions and 3 deletions

View File

@ -237,9 +237,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
public virtual void OnChatBroadcast(Object sender, OSChatMessage c)
{
// unless the chat to be broadcast is of type Region, we
// drop it if its channel is neither 0 nor DEBUG_CHANNEL
if (c.Channel != 0 && c.Channel != DEBUG_CHANNEL && c.Type != ChatTypeEnum.Region) return;
if (c.Channel != 0 && c.Channel != DEBUG_CHANNEL) return;
ChatTypeEnum cType = c.Type;
if (c.Channel == DEBUG_CHANNEL)