mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user