Merge branch 'master' of /home/opensim/var/repo/opensim
commit
466a88f676
|
@ -186,17 +186,21 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||||
|
|
||||||
foreach (GridInstantMessage im in msglist)
|
foreach (GridInstantMessage im in msglist)
|
||||||
{
|
{
|
||||||
// client.SendInstantMessage(im);
|
if (im.dialog == (byte)InstantMessageDialog.InventoryOffered)
|
||||||
|
// send it directly or else the item will be given twice
|
||||||
// Send through scene event manager so all modules get a chance
|
client.SendInstantMessage(im);
|
||||||
// to look at this message before it gets delivered.
|
else
|
||||||
//
|
{
|
||||||
// Needed for proper state management for stored group
|
// Send through scene event manager so all modules get a chance
|
||||||
// invitations
|
// to look at this message before it gets delivered.
|
||||||
//
|
//
|
||||||
Scene s = FindScene(client.AgentId);
|
// Needed for proper state management for stored group
|
||||||
if (s != null)
|
// invitations
|
||||||
s.EventManager.TriggerIncomingInstantMessage(im);
|
//
|
||||||
|
Scene s = FindScene(client.AgentId);
|
||||||
|
if (s != null)
|
||||||
|
s.EventManager.TriggerIncomingInstantMessage(im);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue