Merge branch 'master' into careminster

avinationmerge
Melanie 2012-11-04 23:29:18 +00:00
commit 006d70582b
1 changed files with 12 additions and 9 deletions

View File

@ -451,16 +451,19 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
scene.SendInventoryUpdate(client, trashFolder, true, true); scene.SendInventoryUpdate(client, trashFolder, true, true);
} }
ScenePresence user = scene.GetScenePresence(new UUID(im.toAgentID)); if (im.dialog == (byte)InstantMessageDialog.InventoryDeclined)
{
ScenePresence user = scene.GetScenePresence(new UUID(im.toAgentID));
if (user != null) // Local if (user != null) // Local
{ {
user.ControllingClient.SendInstantMessage(im); user.ControllingClient.SendInstantMessage(im);
} }
else else
{ {
if (m_TransferModule != null) if (m_TransferModule != null)
m_TransferModule.SendInstantMessage(im, delegate(bool success) {}); m_TransferModule.SendInstantMessage(im, delegate(bool success) { });
}
} }
} }
} }