From ea1e38dd14c2e80315a969fd25e35ba56a80c4e3 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sun, 22 Mar 2009 14:32:15 +0000 Subject: Cause the inventory give module to be more selective and not attempt to deliver other modules' IM types --- .../Avatar/Inventory/Transfer/InventoryTransferModule.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs index 64ec356..147d453 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs @@ -392,6 +392,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer /// private void OnGridInstantMessage(GridInstantMessage msg) { + // Check if this is ours to handle + // + if (msg.dialog != (byte) InstantMessageDialog.InventoryOffered) + return; + + if (msg.binaryBucket.Length < 17) // Invalid + return; + Scene scene = FindClientScene(new UUID(msg.toAgentID)); // Find agent to deliver to -- cgit v1.1