Cause the inventory give module to be more selective and not attempt to
deliver other modules' IM types0.6.5-rc1
parent
b83ad8a97b
commit
ea1e38dd14
|
@ -392,6 +392,14 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
|
||||||
/// <param name="msg"></param>
|
/// <param name="msg"></param>
|
||||||
private void OnGridInstantMessage(GridInstantMessage msg)
|
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));
|
Scene scene = FindClientScene(new UUID(msg.toAgentID));
|
||||||
|
|
||||||
// Find agent to deliver to
|
// Find agent to deliver to
|
||||||
|
|
Loading…
Reference in New Issue