diff options
author | MW | 2007-08-20 11:52:55 +0000 |
---|---|---|
committer | MW | 2007-08-20 11:52:55 +0000 |
commit | 4af33c4da6774363db0d442f81b4871718cc5f2e (patch) | |
tree | 76793256cd683b45c81e7a28bbd33ffe70cf72bc /OpenSim/Region/Environment | |
parent | Some minor changes + krinkec's updates to ll* functions. (diff) | |
download | opensim-SC-4af33c4da6774363db0d442f81b4871718cc5f2e.zip opensim-SC-4af33c4da6774363db0d442f81b4871718cc5f2e.tar.gz opensim-SC-4af33c4da6774363db0d442f81b4871718cc5f2e.tar.bz2 opensim-SC-4af33c4da6774363db0d442f81b4871718cc5f2e.tar.xz |
Instant Messages between users in the same region should actually now work.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 6 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | 13 |
3 files changed, 11 insertions, 12 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs index a35140d..0ed10c0 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs | |||
@@ -122,7 +122,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
122 | /// <param name="timestamp"></param> | 122 | /// <param name="timestamp"></param> |
123 | /// <param name="fromAgentName"></param> | 123 | /// <param name="fromAgentName"></param> |
124 | /// <param name="message"></param> | 124 | /// <param name="message"></param> |
125 | public void InstantMessage(LLUUID fromAgentID, LLUUID toAgentID, uint timestamp, string fromAgentName, string message) | 125 | public void InstantMessage(LLUUID fromAgentID, LLUUID fromAgentSession, LLUUID toAgentID, LLUUID imSessionID, uint timestamp, string fromAgentName, string message, byte dialog) |
126 | { | 126 | { |
127 | if (this.Avatars.ContainsKey(toAgentID)) | 127 | if (this.Avatars.ContainsKey(toAgentID)) |
128 | { | 128 | { |
@@ -132,7 +132,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
132 | ScenePresence fromAvatar = this.Avatars[fromAgentID]; | 132 | ScenePresence fromAvatar = this.Avatars[fromAgentID]; |
133 | ScenePresence toAvatar = this.Avatars[toAgentID]; | 133 | ScenePresence toAvatar = this.Avatars[toAgentID]; |
134 | string fromName = fromAvatar.Firstname + " " + fromAvatar.Lastname; | 134 | string fromName = fromAvatar.Firstname + " " + fromAvatar.Lastname; |
135 | toAvatar.ControllingClient.SendInstantMessage(message, toAgentID, fromName); | 135 | toAvatar.ControllingClient.SendInstantMessage( fromAgentID, fromAgentSession, message, toAgentID, imSessionID, fromName, dialog, timestamp); |
136 | } | 136 | } |
137 | else | 137 | else |
138 | { | 138 | { |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 7834230..d1a16e0 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -694,11 +694,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
694 | client.OnParcelPropertiesRequest += new ParcelPropertiesRequest(m_LandManager.handleParcelPropertiesRequest); | 694 | client.OnParcelPropertiesRequest += new ParcelPropertiesRequest(m_LandManager.handleParcelPropertiesRequest); |
695 | client.OnParcelDivideRequest += new ParcelDivideRequest(m_LandManager.handleParcelDivideRequest); | 695 | client.OnParcelDivideRequest += new ParcelDivideRequest(m_LandManager.handleParcelDivideRequest); |
696 | client.OnParcelJoinRequest += new ParcelJoinRequest(m_LandManager.handleParcelJoinRequest); | 696 | client.OnParcelJoinRequest += new ParcelJoinRequest(m_LandManager.handleParcelJoinRequest); |
697 | client.OnParcelPropertiesUpdateRequest += | 697 | client.OnParcelPropertiesUpdateRequest += new ParcelPropertiesUpdateRequest(m_LandManager.handleParcelPropertiesUpdateRequest); |
698 | new ParcelPropertiesUpdateRequest(m_LandManager.handleParcelPropertiesUpdateRequest); | ||
699 | client.OnParcelSelectObjects += new ParcelSelectObjects(m_LandManager.handleParcelSelectObjectsRequest); | 698 | client.OnParcelSelectObjects += new ParcelSelectObjects(m_LandManager.handleParcelSelectObjectsRequest); |
700 | client.OnParcelObjectOwnerRequest += | 699 | client.OnParcelObjectOwnerRequest += new ParcelObjectOwnerRequest(m_LandManager.handleParcelObjectOwnersRequest); |
701 | new ParcelObjectOwnerRequest(m_LandManager.handleParcelObjectOwnersRequest); | ||
702 | 700 | ||
703 | client.OnEstateOwnerMessage += new EstateOwnerMessageRequest(m_estateManager.handleEstateOwnerMessage); | 701 | client.OnEstateOwnerMessage += new EstateOwnerMessageRequest(m_estateManager.handleEstateOwnerMessage); |
704 | 702 | ||
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs index c8a7515..8cf55ad 100644 --- a/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs +++ b/OpenSim/Region/Environment/Scenes/SceneObjectPart.cs | |||
@@ -64,7 +64,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
64 | set { m_name = value; } | 64 | set { m_name = value; } |
65 | } | 65 | } |
66 | 66 | ||
67 | protected LLObject.ObjectFlags m_flags = (LLObject.ObjectFlags)32 + 65536 + 131072 + 256 + 4 + 8 + 268435456 + 128; | 67 | protected LLObject.ObjectFlags m_flags = (LLObject.ObjectFlags)32 + 65536 + 131072 + 256 +4 +8 + 268435456 + 128; |
68 | public uint ObjectFlags | 68 | public uint ObjectFlags |
69 | { | 69 | { |
70 | get { return (uint)m_flags; } | 70 | get { return (uint)m_flags; } |
@@ -405,7 +405,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
405 | { | 405 | { |
406 | if (localID == this.m_localID) | 406 | if (localID == this.m_localID) |
407 | { | 407 | { |
408 | // client.SendTaskInventory(this.m_uuid, 0, Helpers.StringToField("primInventory")); | 408 | //client.SendTaskInventory(this.m_uuid, 1, Helpers.StringToField("primInventory2")); |
409 | client.SendTaskInventory(this.m_uuid, 0, new byte[0]); | 409 | client.SendTaskInventory(this.m_uuid, 0, new byte[0]); |
410 | } | 410 | } |
411 | } | 411 | } |
@@ -421,7 +421,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
421 | InventoryStringBuilder invString = new InventoryStringBuilder(); | 421 | InventoryStringBuilder invString = new InventoryStringBuilder(); |
422 | invString.AddItemStart(); | 422 | invString.AddItemStart(); |
423 | invString.AddNameValueLine("item_id", LLUUID.Random().ToStringHyphenated()); | 423 | invString.AddNameValueLine("item_id", LLUUID.Random().ToStringHyphenated()); |
424 | invString.AddNameValueLine("parent_id", this.UUID.ToStringHyphenated()); | 424 | invString.AddNameValueLine("parent_id",LLUUID.Zero.ToStringHyphenated()); |
425 | 425 | ||
426 | invString.AddPermissionsStart(); | 426 | invString.AddPermissionsStart(); |
427 | invString.AddNameValueLine("base_mask", "0x7FFFFFFF"); | 427 | invString.AddNameValueLine("base_mask", "0x7FFFFFFF"); |
@@ -435,9 +435,9 @@ namespace OpenSim.Region.Environment.Scenes | |||
435 | invString.AddNameValueLine("group_id", LLUUID.Zero.ToStringHyphenated()); | 435 | invString.AddNameValueLine("group_id", LLUUID.Zero.ToStringHyphenated()); |
436 | invString.AddSectionEnd(); | 436 | invString.AddSectionEnd(); |
437 | 437 | ||
438 | invString.AddNameValueLine("asset_id", "00000000-0000-0000-9999-000000000002"); | 438 | invString.AddNameValueLine("asset_id", "00000000-0000-2222-3333-000000000001"); |
439 | invString.AddNameValueLine("type", "texture"); | 439 | invString.AddNameValueLine("type", "lsltext"); |
440 | invString.AddNameValueLine("inv_type" , "texture"); | 440 | invString.AddNameValueLine("inv_type" , "lsltext"); |
441 | invString.AddNameValueLine("flags", "0x00"); | 441 | invString.AddNameValueLine("flags", "0x00"); |
442 | invString.AddNameValueLine("name", "Test inventory" + "|"); | 442 | invString.AddNameValueLine("name", "Test inventory" + "|"); |
443 | invString.AddNameValueLine("desc", "test description" + "|"); | 443 | invString.AddNameValueLine("desc", "test description" + "|"); |
@@ -446,6 +446,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
446 | 446 | ||
447 | byte[] fileInv = Helpers.StringToField(invString.BuildString); | 447 | byte[] fileInv = Helpers.StringToField(invString.BuildString); |
448 | byte[] data = new byte[fileInv.Length + 4]; | 448 | byte[] data = new byte[fileInv.Length + 4]; |
449 | Array.Copy(Helpers.IntToBytes(fileInv.Length), 0, data, 0, 4); | ||
449 | Array.Copy(fileInv, 0,data , 4, fileInv.Length); | 450 | Array.Copy(fileInv, 0,data , 4, fileInv.Length); |
450 | client.SendXferPacket(xferID, 0 + 0x80000000, data); | 451 | client.SendXferPacket(xferID, 0 + 0x80000000, data); |
451 | } | 452 | } |