Prevent IMs being sent to prims when avies decline inventory offers from them.

avinationmerge
Diva Canto 2012-11-04 15:17:47 -08:00 committed by Melanie
parent 7e91a787fb
commit 08b37efc32
1 changed files with 12 additions and 9 deletions

View File

@ -409,6 +409,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
"received inventory" + reason, false); "received inventory" + reason, false);
} }
if (im.dialog == (byte)InstantMessageDialog.InventoryDeclined)
{
ScenePresence user = scene.GetScenePresence(new UUID(im.toAgentID)); ScenePresence user = scene.GetScenePresence(new UUID(im.toAgentID));
if (user != null) // Local if (user != null) // Local
@ -418,7 +420,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
else else
{ {
if (m_TransferModule != null) if (m_TransferModule != null)
m_TransferModule.SendInstantMessage(im, delegate(bool success) {}); m_TransferModule.SendInstantMessage(im, delegate(bool success) { });
}
} }
} }
} }