aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs
diff options
context:
space:
mode:
authorMelanie Thielker2016-07-04 03:37:45 +0100
committerMelanie Thielker2016-07-04 03:37:45 +0100
commit4468aa0dcfebb045bc54df1f67f021f85f9bc4b6 (patch)
treef52b7cf28acfe4bdbdff7ed7dfd112c6dd6b16fb /OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs
parentFinally remove the requirement for an InventoryItem/FolderBase object to (diff)
parentNew config var: DisableObjectTransfer. If set to True, objects never cross; i... (diff)
downloadopensim-SC-4468aa0dcfebb045bc54df1f67f021f85f9bc4b6.zip
opensim-SC-4468aa0dcfebb045bc54df1f67f021f85f9bc4b6.tar.gz
opensim-SC-4468aa0dcfebb045bc54df1f67f021f85f9bc4b6.tar.bz2
opensim-SC-4468aa0dcfebb045bc54df1f67f021f85f9bc4b6.tar.xz
Merge branch 'master' of opensimulator.org:/var/git/opensim
Diffstat (limited to 'OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs15
1 files changed, 7 insertions, 8 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs
index ec34e39..ddeac66 100644
--- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs
@@ -786,7 +786,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
786 786
787 GroupProfileData profile = new GroupProfileData(); 787 GroupProfileData profile = new GroupProfileData();
788 788
789
790 GroupRecord groupInfo = m_groupData.GetGroupRecord(GetRequestingAgentID(remoteClient), groupID, null); 789 GroupRecord groupInfo = m_groupData.GetGroupRecord(GetRequestingAgentID(remoteClient), groupID, null);
791 if (groupInfo != null) 790 if (groupInfo != null)
792 { 791 {
@@ -812,7 +811,11 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
812 profile.MemberTitle = memberInfo.GroupTitle; 811 profile.MemberTitle = memberInfo.GroupTitle;
813 profile.PowersMask = memberInfo.GroupPowers; 812 profile.PowersMask = memberInfo.GroupPowers;
814 } 813 }
815 814/*
815 this should save xmlrpc calls, but seems to return wrong GroupMembershipCount and GroupRolesCount
816 UUID agent = GetRequestingAgentID(remoteClient);
817 GroupProfileData profile = m_groupData.GetMemberGroupProfile(agent, groupID, agent);
818*/
816 return profile; 819 return profile;
817 } 820 }
818 821
@@ -1407,13 +1410,9 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
1407 SendDataUpdate(remoteClient, tellOthers); 1410 SendDataUpdate(remoteClient, tellOthers);
1408 1411
1409 GroupMembershipData[] membershipArray = GetProfileListedGroupMemberships(remoteClient, agentID); 1412 GroupMembershipData[] membershipArray = GetProfileListedGroupMemberships(remoteClient, agentID);
1410 IEventQueue eq = remoteClient.Scene.RequestModuleInterface<IEventQueue>(); 1413 remoteClient.UpdateGroupMembership(membershipArray);
1411 if (eq != null)
1412 eq.GroupMembershipData(agentID, membershipArray);
1413 else
1414 remoteClient.SendGroupMembership(membershipArray);
1415 1414
1416 remoteClient.RefreshGroupMembership(); 1415 remoteClient.SendAgentGroupDataUpdate(agentID, membershipArray);
1417 } 1416 }
1418 1417
1419 /// <summary> 1418 /// <summary>