Add group invites to the list of messages that get offlined

avinationmerge
Melanie 2010-10-10 20:15:02 +02:00
parent 231feab57f
commit c2971a6398
2 changed files with 15 additions and 14 deletions

View File

@ -215,6 +215,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
if (im.dialog != (byte)InstantMessageDialog.MessageFromObject && if (im.dialog != (byte)InstantMessageDialog.MessageFromObject &&
im.dialog != (byte)InstantMessageDialog.MessageFromAgent && im.dialog != (byte)InstantMessageDialog.MessageFromAgent &&
im.dialog != (byte)InstantMessageDialog.GroupNotice && im.dialog != (byte)InstantMessageDialog.GroupNotice &&
im.dialog != (byte)InstantMessageDialog.GroupInvitation &&
im.dialog != (byte)InstantMessageDialog.InventoryOffered) im.dialog != (byte)InstantMessageDialog.InventoryOffered)
{ {
return; return;

View File

@ -1697,14 +1697,14 @@ namespace OpenSim.Region.Framework.Scenes
List<SceneObjectGroup> deleteGroups = new List<SceneObjectGroup>(); List<SceneObjectGroup> deleteGroups = new List<SceneObjectGroup>();
List<SceneObjectGroup> takeGroups = new List<SceneObjectGroup>(); List<SceneObjectGroup> takeGroups = new List<SceneObjectGroup>();
foreach (uint localID in localIDs)
{
// Start with true for both, then remove the flags if objects // Start with true for both, then remove the flags if objects
// that we can't derez are part of the selection // that we can't derez are part of the selection
bool permissionToTake = true; bool permissionToTake = true;
bool permissionToTakeCopy = true; bool permissionToTakeCopy = true;
bool permissionToDelete = true; bool permissionToDelete = true;
foreach (uint localID in localIDs)
{
// Invalid id // Invalid id
SceneObjectPart part = GetSceneObjectPart(localID); SceneObjectPart part = GetSceneObjectPart(localID);
if (part == null) if (part == null)
@ -1803,6 +1803,7 @@ namespace OpenSim.Region.Framework.Scenes
permissionToTake = true; permissionToTake = true;
permissionToDelete = true; permissionToDelete = true;
} }
}
if (permissionToTake && (!permissionToDelete)) if (permissionToTake && (!permissionToDelete))
takeGroups.Add(grp); takeGroups.Add(grp);
@ -1814,7 +1815,6 @@ namespace OpenSim.Region.Framework.Scenes
deleteIDs.Add(grp.LocalId); deleteIDs.Add(grp.LocalId);
} }
} }
}
SendKillObject(deleteIDs); SendKillObject(deleteIDs);