aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie2010-10-10 20:15:02 +0200
committerMelanie2010-10-10 20:15:02 +0200
commitc2971a6398f21cb3eb6c9cad46348a035eb2a0f5 (patch)
tree389ae3c0b33e5e37e09891812b938819bb4b5dff
parentMerge branch 'master' into careminster-presence-refactor (diff)
downloadopensim-SC_OLD-c2971a6398f21cb3eb6c9cad46348a035eb2a0f5.zip
opensim-SC_OLD-c2971a6398f21cb3eb6c9cad46348a035eb2a0f5.tar.gz
opensim-SC_OLD-c2971a6398f21cb3eb6c9cad46348a035eb2a0f5.tar.bz2
opensim-SC_OLD-c2971a6398f21cb3eb6c9cad46348a035eb2a0f5.tar.xz
Add group invites to the list of messages that get offlined
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs1
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs28
2 files changed, 15 insertions, 14 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs
index feeb9e6..d3db5b7 100644
--- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs
@@ -215,6 +215,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
215 if (im.dialog != (byte)InstantMessageDialog.MessageFromObject && 215 if (im.dialog != (byte)InstantMessageDialog.MessageFromObject &&
216 im.dialog != (byte)InstantMessageDialog.MessageFromAgent && 216 im.dialog != (byte)InstantMessageDialog.MessageFromAgent &&
217 im.dialog != (byte)InstantMessageDialog.GroupNotice && 217 im.dialog != (byte)InstantMessageDialog.GroupNotice &&
218 im.dialog != (byte)InstantMessageDialog.GroupInvitation &&
218 im.dialog != (byte)InstantMessageDialog.InventoryOffered) 219 im.dialog != (byte)InstantMessageDialog.InventoryOffered)
219 { 220 {
220 return; 221 return;
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 9b5459d..1d8b988 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -1697,14 +1697,14 @@ namespace OpenSim.Region.Framework.Scenes
1697 List<SceneObjectGroup> deleteGroups = new List<SceneObjectGroup>(); 1697 List<SceneObjectGroup> deleteGroups = new List<SceneObjectGroup>();
1698 List<SceneObjectGroup> takeGroups = new List<SceneObjectGroup>(); 1698 List<SceneObjectGroup> takeGroups = new List<SceneObjectGroup>();
1699 1699
1700 // Start with true for both, then remove the flags if objects
1701 // that we can't derez are part of the selection
1702 bool permissionToTake = true;
1703 bool permissionToTakeCopy = true;
1704 bool permissionToDelete = true;
1705
1706 foreach (uint localID in localIDs) 1700 foreach (uint localID in localIDs)
1707 { 1701 {
1702 // Start with true for both, then remove the flags if objects
1703 // that we can't derez are part of the selection
1704 bool permissionToTake = true;
1705 bool permissionToTakeCopy = true;
1706 bool permissionToDelete = true;
1707
1708 // Invalid id 1708 // Invalid id
1709 SceneObjectPart part = GetSceneObjectPart(localID); 1709 SceneObjectPart part = GetSceneObjectPart(localID);
1710 if (part == null) 1710 if (part == null)
@@ -1803,16 +1803,16 @@ namespace OpenSim.Region.Framework.Scenes
1803 permissionToTake = true; 1803 permissionToTake = true;
1804 permissionToDelete = true; 1804 permissionToDelete = true;
1805 } 1805 }
1806 }
1806 1807
1807 if (permissionToTake && (!permissionToDelete)) 1808 if (permissionToTake && (!permissionToDelete))
1808 takeGroups.Add(grp); 1809 takeGroups.Add(grp);
1809 1810
1810 if (permissionToDelete) 1811 if (permissionToDelete)
1811 { 1812 {
1812 if (permissionToTake) 1813 if (permissionToTake)
1813 deleteGroups.Add(grp); 1814 deleteGroups.Add(grp);
1814 deleteIDs.Add(grp.LocalId); 1815 deleteIDs.Add(grp.LocalId);
1815 }
1816 } 1816 }
1817 } 1817 }
1818 1818