diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/CoreModules/Scripting/WorldComm/WorldCommModule.cs index 2c2c99c..3484387 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 | |||
379 | if (sp.IsChildAgent) | 379 | if (sp.IsChildAgent) |
380 | return; | 380 | return; |
381 | 381 | ||
382 | // Send message to the avatar. | ||
383 | // Channel zero only goes to the avatar | 382 | // Channel zero only goes to the avatar |
384 | // non zero channel messages only go to the attachments | 383 | // non zero channel messages only go to the attachments of the avatar. |
385 | if (channel == 0) | 384 | if (channel != 0) |
386 | { | ||
387 | m_scene.SimChatToAgent(target, Utils.StringToBytes(msg), | ||
388 | pos, name, id, false); | ||
389 | } | ||
390 | else | ||
391 | { | 385 | { |
392 | List<SceneObjectGroup> attachments = sp.GetAttachments(); | 386 | List<SceneObjectGroup> attachments = sp.GetAttachments(); |
393 | if (attachments.Count == 0) | 387 | if (attachments.Count == 0) |