diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs index 8ff20dd..e200775 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs | |||
@@ -434,16 +434,19 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer | |||
434 | scene.SendInventoryUpdate(client, trashFolder, true, true); | 434 | scene.SendInventoryUpdate(client, trashFolder, true, true); |
435 | } | 435 | } |
436 | 436 | ||
437 | ScenePresence user = scene.GetScenePresence(new UUID(im.toAgentID)); | 437 | if (im.dialog == (byte)InstantMessageDialog.InventoryDeclined) |
438 | |||
439 | if (user != null) // Local | ||
440 | { | ||
441 | user.ControllingClient.SendInstantMessage(im); | ||
442 | } | ||
443 | else | ||
444 | { | 438 | { |
445 | if (m_TransferModule != null) | 439 | ScenePresence user = scene.GetScenePresence(new UUID(im.toAgentID)); |
446 | m_TransferModule.SendInstantMessage(im, delegate(bool success) {}); | 440 | |
441 | if (user != null) // Local | ||
442 | { | ||
443 | user.ControllingClient.SendInstantMessage(im); | ||
444 | } | ||
445 | else | ||
446 | { | ||
447 | if (m_TransferModule != null) | ||
448 | m_TransferModule.SendInstantMessage(im, delegate(bool success) { }); | ||
449 | } | ||
447 | } | 450 | } |
448 | } | 451 | } |
449 | } | 452 | } |