aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs17
1 files changed, 16 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
index df8b190..71f8037 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
@@ -70,7 +70,22 @@ namespace OpenSim.Region.Environment.Scenes
70 { 70 {
71 if (m_simChatModule != null) 71 if (m_simChatModule != null)
72 { 72 {
73 m_simChatModule.SimChat(message, type, channel, fromPos, fromName, fromAgentID); 73 ChatFromViewerArgs args = new ChatFromViewerArgs();
74
75 args.Message = OpenSim.Framework.Utilities.Util.FieldToString(message);
76 args.Channel = channel;
77 args.Type = (ChatTypeEnum)type;
78 args.Position = fromPos;
79
80 ScenePresence user = this.GetScenePresence(fromAgentID);
81 if (user != null)
82 args.Sender = user.ControllingClient;
83 else
84 args.Sender = null;
85
86 args.From = fromName;
87
88 m_simChatModule.SimChat(this, args);
74 } 89 }
75 } 90 }
76 91