diff --git a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs index 2c2c99caa6..34843876e0 100644 --- a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs +++ b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs @@ -379,15 +379,9 @@ namespace OpenSim.Region.CoreModules.Scripting.WorldComm if (sp.IsChildAgent) return; - // Send message to the avatar. // Channel zero only goes to the avatar - // non zero channel messages only go to the attachments - if (channel == 0) - { - m_scene.SimChatToAgent(target, Utils.StringToBytes(msg), - pos, name, id, false); - } - else + // non zero channel messages only go to the attachments of the avatar. + if (channel != 0) { List attachments = sp.GetAttachments(); if (attachments.Count == 0)