aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs8
-rw-r--r--OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs6
2 files changed, 6 insertions, 8 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 0bb5dc6..26fc85e 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -961,11 +961,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
961 = (ImprovedInstantMessagePacket)PacketPool.Instance.GetPacket(PacketType.ImprovedInstantMessage); 961 = (ImprovedInstantMessagePacket)PacketPool.Instance.GetPacket(PacketType.ImprovedInstantMessage);
962 962
963 msg.AgentData.AgentID = new UUID(im.fromAgentID); 963 msg.AgentData.AgentID = new UUID(im.fromAgentID);
964 msg.AgentData.SessionID = new UUID(im.imSessionID); 964 msg.AgentData.SessionID = UUID.Zero;
965 msg.MessageBlock.FromAgentName = Util.StringToBytes256(im.fromAgentName); 965 msg.MessageBlock.FromAgentName = Util.StringToBytes256(im.fromAgentName);
966 msg.MessageBlock.Dialog = im.dialog; 966 msg.MessageBlock.Dialog = im.dialog;
967 msg.MessageBlock.FromGroup = im.fromGroup; 967 msg.MessageBlock.FromGroup = im.fromGroup;
968 msg.MessageBlock.ID = new UUID(im.ID); 968 // this is odd
969 if (im.imSessionID == UUID.Zero.Guid)
970 msg.MessageBlock.ID = new UUID(im.fromAgentID) ^ new UUID(im.toAgentID);
971 else
972 msg.MessageBlock.ID = new UUID(im.imSessionID);
969 msg.MessageBlock.Offline = im.offline; 973 msg.MessageBlock.Offline = im.offline;
970 msg.MessageBlock.ParentEstateID = im.ParentEstateID; 974 msg.MessageBlock.ParentEstateID = im.ParentEstateID;
971 msg.MessageBlock.Position = im.Position; 975 msg.MessageBlock.Position = im.Position;
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs
index 1366103..6b120fb 100644
--- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs
@@ -216,7 +216,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
216 UUID fromAgentID = UUID.Zero; 216 UUID fromAgentID = UUID.Zero;
217 UUID toAgentID = UUID.Zero; 217 UUID toAgentID = UUID.Zero;
218 UUID imSessionID = UUID.Zero; 218 UUID imSessionID = UUID.Zero;
219 UUID imID = UUID.Zero;
220 uint timestamp = 0; 219 uint timestamp = 0;
221 string fromAgentName = ""; 220 string fromAgentName = "";
222 string message = ""; 221 string message = "";
@@ -263,7 +262,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
263 UUID.TryParse((string)requestData["to_agent_id"], out toAgentID); 262 UUID.TryParse((string)requestData["to_agent_id"], out toAgentID);
264 UUID.TryParse((string)requestData["im_session_id"], out imSessionID); 263 UUID.TryParse((string)requestData["im_session_id"], out imSessionID);
265 UUID.TryParse((string)requestData["region_id"], out RegionID); 264 UUID.TryParse((string)requestData["region_id"], out RegionID);
266 UUID.TryParse((string)requestData["id"], out imID);
267 265
268 try 266 try
269 { 267 {
@@ -391,8 +389,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
391 gim.ParentEstateID = ParentEstateID; 389 gim.ParentEstateID = ParentEstateID;
392 gim.Position = Position; 390 gim.Position = Position;
393 gim.binaryBucket = binaryBucket; 391 gim.binaryBucket = binaryBucket;
394 gim.ID = imID.Guid;
395
396 392
397 // Trigger the Instant message in the scene. 393 // Trigger the Instant message in the scene.
398 foreach (Scene scene in m_Scenes) 394 foreach (Scene scene in m_Scenes)
@@ -702,8 +698,6 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
702 gim["from_agent_session"] = UUID.Zero.ToString(); 698 gim["from_agent_session"] = UUID.Zero.ToString();
703 gim["to_agent_id"] = msg.toAgentID.ToString(); 699 gim["to_agent_id"] = msg.toAgentID.ToString();
704 gim["im_session_id"] = msg.imSessionID.ToString(); 700 gim["im_session_id"] = msg.imSessionID.ToString();
705 if(msg.ID != Guid.Empty)
706 gim["id"] = msg.ID.ToString();
707 gim["timestamp"] = msg.timestamp.ToString(); 701 gim["timestamp"] = msg.timestamp.ToString();
708 gim["from_agent_name"] = msg.fromAgentName; 702 gim["from_agent_name"] = msg.fromAgentName;
709 gim["message"] = msg.message; 703 gim["message"] = msg.message;