diff options
Diffstat (limited to 'OpenSim/Region/OptionalModules')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs index 79d7477..9d56ba8 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs | |||
@@ -1191,6 +1191,16 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1191 | 1191 | ||
1192 | foreach (GroupMembershipData membership in data) | 1192 | foreach (GroupMembershipData membership in data) |
1193 | { | 1193 | { |
1194 | if (remoteClient.AgentId != dataForAgentID) | ||
1195 | { | ||
1196 | if (!membership.ListInProfile) | ||
1197 | { | ||
1198 | // If we're sending group info to remoteclient about another agent, | ||
1199 | // filter out groups the other agent doesn't want to share. | ||
1200 | continue; | ||
1201 | } | ||
1202 | } | ||
1203 | |||
1194 | OSDMap GroupDataMap = new OSDMap(6); | 1204 | OSDMap GroupDataMap = new OSDMap(6); |
1195 | OSDMap NewGroupDataMap = new OSDMap(1); | 1205 | OSDMap NewGroupDataMap = new OSDMap(1); |
1196 | 1206 | ||
@@ -1292,6 +1302,15 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
1292 | membershipArray = membershipData.ToArray(); | 1302 | membershipArray = membershipData.ToArray(); |
1293 | } | 1303 | } |
1294 | 1304 | ||
1305 | if (m_debugEnabled) | ||
1306 | { | ||
1307 | m_log.InfoFormat("[GROUPS]: Sending group membership information for {0} to {1}", dataForAgentID, remoteClient.AgentId); | ||
1308 | foreach (GroupMembershipData membership in membershipArray) | ||
1309 | { | ||
1310 | m_log.InfoFormat("[GROUPS]: {0} :: {1} - {2}", dataForAgentID, membership.GroupName, membership.GroupTitle); | ||
1311 | } | ||
1312 | } | ||
1313 | |||
1295 | SendGroupMembershipInfoViaCaps(remoteClient, dataForAgentID, membershipArray); | 1314 | SendGroupMembershipInfoViaCaps(remoteClient, dataForAgentID, membershipArray); |
1296 | remoteClient.SendAvatarGroupsReply(dataForAgentID, membershipArray); | 1315 | remoteClient.SendAvatarGroupsReply(dataForAgentID, membershipArray); |
1297 | 1316 | ||