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 avatarsviewer-2-initial-appearance
parent
4327c795f8
commit
889923841c
|
@ -237,9 +237,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
|
||||||
|
|
||||||
public virtual void OnChatBroadcast(Object sender, OSChatMessage c)
|
public virtual void OnChatBroadcast(Object sender, OSChatMessage c)
|
||||||
{
|
{
|
||||||
// unless the chat to be broadcast is of type Region, we
|
if (c.Channel != 0 && c.Channel != DEBUG_CHANNEL) return;
|
||||||
// drop it if its channel is neither 0 nor DEBUG_CHANNEL
|
|
||||||
if (c.Channel != 0 && c.Channel != DEBUG_CHANNEL && c.Type != ChatTypeEnum.Region) return;
|
|
||||||
|
|
||||||
ChatTypeEnum cType = c.Type;
|
ChatTypeEnum cType = c.Type;
|
||||||
if (c.Channel == DEBUG_CHANNEL)
|
if (c.Channel == DEBUG_CHANNEL)
|
||||||
|
|
Loading…
Reference in New Issue