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 &&
im.dialog != (byte)InstantMessageDialog.MessageFromAgent &&
im.dialog != (byte)InstantMessageDialog.GroupNotice &&
im.dialog != (byte)InstantMessageDialog.GroupInvitation &&
im.dialog != (byte)InstantMessageDialog.InventoryOffered)
{
return;

View File

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