aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorTeravus Ovares2007-12-30 04:12:08 +0000
committerTeravus Ovares2007-12-30 04:12:08 +0000
commit14368d9a732d4e8f6508aec07a3c3c51e3e9f33e (patch)
tree5da643346e901222f8859baa861822acb056004e /OpenSim/Region
parent* Extracted out old RezObject method placing at absolute pos without the rayt... (diff)
downloadopensim-SC-14368d9a732d4e8f6508aec07a3c3c51e3e9f33e.zip
opensim-SC-14368d9a732d4e8f6508aec07a3c3c51e3e9f33e.tar.gz
opensim-SC-14368d9a732d4e8f6508aec07a3c3c51e3e9f33e.tar.bz2
opensim-SC-14368d9a732d4e8f6508aec07a3c3c51e3e9f33e.tar.xz
* Applied Melanie's same instance IM fix. This will make IMs work within the same OpenSim Instance.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs13
-rw-r--r--OpenSim/Region/Environment/Modules/InstantMessageModule.cs10
2 files changed, 18 insertions, 5 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index 0d3c07e..932414d 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -2540,12 +2540,23 @@ namespace OpenSim.Region.ClientStack
2540 ImprovedInstantMessagePacket msgpack = (ImprovedInstantMessagePacket) Pack; 2540 ImprovedInstantMessagePacket msgpack = (ImprovedInstantMessagePacket) Pack;
2541 string IMfromName = Util.FieldToString(msgpack.MessageBlock.FromAgentName); 2541 string IMfromName = Util.FieldToString(msgpack.MessageBlock.FromAgentName);
2542 string IMmessage = Helpers.FieldToUTF8String(msgpack.MessageBlock.Message); 2542 string IMmessage = Helpers.FieldToUTF8String(msgpack.MessageBlock.Message);
2543 //byte[] msgpack.MessageBlock.BinaryBucket;
2544 //bool msgpack.MessageBlock.FromGroup;
2545
2546 //byte msgpack.MessageBlock.Offline;
2547 //uint msgpack.MessageBlock.ParentEstateID;
2548 //LLVector3 msgpack.MessageBlock.Position;
2549 //LLUUID msgpack.MessageBlock.RegionID;
2550
2543 if (OnInstantMessage != null) 2551 if (OnInstantMessage != null)
2544 { 2552 {
2545 OnInstantMessage(msgpack.AgentData.AgentID, msgpack.AgentData.SessionID, 2553 OnInstantMessage(msgpack.AgentData.AgentID, msgpack.AgentData.SessionID,
2546 msgpack.MessageBlock.ToAgentID, msgpack.MessageBlock.ID, 2554 msgpack.MessageBlock.ToAgentID, msgpack.MessageBlock.ID,
2547 msgpack.MessageBlock.Timestamp, IMfromName, IMmessage, 2555 msgpack.MessageBlock.Timestamp, IMfromName, IMmessage,
2548 msgpack.MessageBlock.Dialog); 2556 msgpack.MessageBlock.Dialog, msgpack.MessageBlock.FromGroup,
2557 msgpack.MessageBlock.Offline, msgpack.MessageBlock.ParentEstateID,
2558 msgpack.MessageBlock.Position, msgpack.MessageBlock.RegionID,
2559 msgpack.MessageBlock.BinaryBucket);
2549 } 2560 }
2550 break; 2561 break;
2551 case PacketType.RezObject: 2562 case PacketType.RezObject:
diff --git a/OpenSim/Region/Environment/Modules/InstantMessageModule.cs b/OpenSim/Region/Environment/Modules/InstantMessageModule.cs
index cf6a94d..1e1d236 100644
--- a/OpenSim/Region/Environment/Modules/InstantMessageModule.cs
+++ b/OpenSim/Region/Environment/Modules/InstantMessageModule.cs
@@ -63,7 +63,9 @@ namespace OpenSim.Region.Environment.Modules
63 private void OnInstantMessage(LLUUID fromAgentID, 63 private void OnInstantMessage(LLUUID fromAgentID,
64 LLUUID fromAgentSession, LLUUID toAgentID, 64 LLUUID fromAgentSession, LLUUID toAgentID,
65 LLUUID imSessionID, uint timestamp, string fromAgentName, 65 LLUUID imSessionID, uint timestamp, string fromAgentName,
66 string message, byte dialog) 66 string message, byte dialog, bool fromGroup, byte offline,
67 uint ParentEstateID, LLVector3 Position, LLUUID RegionID,
68 byte[] binaryBucket)
67 { 69 {
68 foreach (Scene scene in m_scenes) 70 foreach (Scene scene in m_scenes)
69 { 71 {
@@ -76,9 +78,9 @@ namespace OpenSim.Region.Environment.Modules
76 user.ControllingClient.SendInstantMessage(fromAgentID, fromAgentSession, message, 78 user.ControllingClient.SendInstantMessage(fromAgentID, fromAgentSession, message,
77 toAgentID, imSessionID, fromAgentName, dialog, 79 toAgentID, imSessionID, fromAgentName, dialog,
78 timestamp); 80 timestamp);
81 // Message sent
82 return;
79 } 83 }
80 // Message sent
81 return;
82 } 84 }
83 } 85 }
84 86
@@ -104,4 +106,4 @@ namespace OpenSim.Region.Environment.Modules
104 get { return true; } 106 get { return true; }
105 } 107 }
106 } 108 }
107} \ No newline at end of file 109}