aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/WorldCommModule.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules/WorldCommModule.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/WorldCommModule.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/OpenSim/Region/Environment/Modules/WorldCommModule.cs b/OpenSim/Region/Environment/Modules/WorldCommModule.cs
index 765f1b4..cf5bba3 100644
--- a/OpenSim/Region/Environment/Modules/WorldCommModule.cs
+++ b/OpenSim/Region/Environment/Modules/WorldCommModule.cs
@@ -119,13 +119,12 @@ namespace OpenSim.Region.Environment.Modules
119 client.OnChatFromViewer += DeliverClientMessage; 119 client.OnChatFromViewer += DeliverClientMessage;
120 } 120 }
121 121
122 private void DeliverClientMessage(byte[] message, byte type, int channel, LLVector3 fromPos, string fromName, 122 private void DeliverClientMessage(Object sender, ChatFromViewerArgs e)
123 LLUUID fromAgentID)
124 { 123 {
125 ASCIIEncoding ae = new ASCIIEncoding(); 124 DeliverMessage(e.Sender.AgentId.ToString(),
126 125 (int)e.Type, e.Channel,
127 DeliverMessage(fromAgentID.ToString(), type, channel, fromName, ae.GetString(message)); 126 e.Sender.FirstName + " " + e.Sender.LastName,
128 127 e.Message);
129 } 128 }
130 129
131 public int Listen(uint localID, LLUUID itemID, LLUUID hostID, int channel, string name, string id, string msg) 130 public int Listen(uint localID, LLUUID itemID, LLUUID hostID, int channel, string name, string id, string msg)