Cause the inventory give module to be more selective and not attempt to

deliver other modules' IM types
0.6.5-rc1
Melanie Thielker 2009-03-22 14:32:15 +00:00
parent b83ad8a97b
commit ea1e38dd14
1 changed files with 8 additions and 0 deletions

View File

@ -392,6 +392,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
/// <param name="msg"></param>
private void OnGridInstantMessage(GridInstantMessage msg)
{
// Check if this is ours to handle
//
if (msg.dialog != (byte) InstantMessageDialog.InventoryOffered)
return;
if (msg.binaryBucket.Length < 17) // Invalid
return;
Scene scene = FindClientScene(new UUID(msg.toAgentID));
// Find agent to deliver to