Prevent IMs being sent to prims when avies decline inventory offers from them.
parent
7e91a787fb
commit
08b37efc32
|
@ -409,6 +409,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
|||
"received inventory" + reason, false);
|
||||
}
|
||||
|
||||
if (im.dialog == (byte)InstantMessageDialog.InventoryDeclined)
|
||||
{
|
||||
ScenePresence user = scene.GetScenePresence(new UUID(im.toAgentID));
|
||||
|
||||
if (user != null) // Local
|
||||
|
@ -422,6 +424,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool NeedSceneCacheClear(UUID agentID, Scene scene)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue