aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/ClientView.API.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/ClientView.API.cs')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.API.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs
index 14e1b39..c8213fc 100644
--- a/OpenSim/Region/ClientStack/ClientView.API.cs
+++ b/OpenSim/Region/ClientStack/ClientView.API.cs
@@ -251,6 +251,7 @@ namespace OpenSim.Region.ClientStack
251 LLUUID imSessionID, string fromName, byte dialog, uint timeStamp) 251 LLUUID imSessionID, string fromName, byte dialog, uint timeStamp)
252 { 252 {
253 Encoding enc = Encoding.ASCII; 253 Encoding enc = Encoding.ASCII;
254 Encoding encUTF8 = Encoding.UTF8;
254 ImprovedInstantMessagePacket msg = new ImprovedInstantMessagePacket(); 255 ImprovedInstantMessagePacket msg = new ImprovedInstantMessagePacket();
255 msg.AgentData.AgentID = fromAgent; 256 msg.AgentData.AgentID = fromAgent;
256 msg.AgentData.SessionID = fromAgentSession; 257 msg.AgentData.SessionID = fromAgentSession;
@@ -264,7 +265,7 @@ namespace OpenSim.Region.ClientStack
264 msg.MessageBlock.RegionID = LLUUID.Random(); 265 msg.MessageBlock.RegionID = LLUUID.Random();
265 msg.MessageBlock.Timestamp = timeStamp; 266 msg.MessageBlock.Timestamp = timeStamp;
266 msg.MessageBlock.ToAgentID = toAgent; 267 msg.MessageBlock.ToAgentID = toAgent;
267 msg.MessageBlock.Message = enc.GetBytes(message + "\0"); 268 msg.MessageBlock.Message = encUTF8.GetBytes(message + "\0");
268 msg.MessageBlock.BinaryBucket = new byte[0]; 269 msg.MessageBlock.BinaryBucket = new byte[0];
269 270
270 OutPacket(msg); 271 OutPacket(msg);