From 20e1a8d7f62784aacb3d11feaaad07472f8f2347 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Tue, 31 Mar 2009 05:47:53 +0000 Subject: Thanks rtomita for a patch to add a handler for the RemoveInventoryObjects packet. (bug #3304) --- .../Region/ClientStack/LindenUDP/LLClientView.cs | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 52ad5c2..e021849 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -5830,6 +5830,35 @@ namespace OpenSim.Region.ClientStack.LindenUDP } } break; + case PacketType.RemoveInventoryObjects: + RemoveInventoryObjectsPacket removeObject = (RemoveInventoryObjectsPacket)Pack; + if (OnRemoveInventoryFolder != null) + { + handlerRemoveInventoryFolder = null; + foreach (RemoveInventoryObjectsPacket.FolderDataBlock datablock in removeObject.FolderData) + { + handlerRemoveInventoryFolder = OnRemoveInventoryFolder; + + if (handlerRemoveInventoryFolder != null) + { + handlerRemoveInventoryFolder(this, datablock.FolderID); + } + } + } + + if (OnRemoveInventoryItem != null) + { + handlerRemoveInventoryItem = null; + foreach (RemoveInventoryObjectsPacket.ItemDataBlock datablock in removeObject.ItemData) + { + handlerRemoveInventoryItem = OnRemoveInventoryItem; + if (handlerRemoveInventoryItem != null) + { + handlerRemoveInventoryItem(this, datablock.ItemID); + } + } + } + break; case PacketType.RequestTaskInventory: RequestTaskInventoryPacket requesttask = (RequestTaskInventoryPacket)Pack; -- cgit v1.1