diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs index eb630de..6282272 100644 --- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs +++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs | |||
@@ -597,27 +597,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups | |||
597 | 597 | ||
598 | public GroupRecord GetGroupRecord(string name) | 598 | public GroupRecord GetGroupRecord(string name) |
599 | { | 599 | { |
600 | if (m_debugEnabled) | 600 | return m_groupData.GetGroupRecord(UUID.Zero, UUID.Zero, name); |
601 | m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name); | ||
602 | |||
603 | // XXX: Two call implementation. This could be done in a single call if the server itself were to | ||
604 | // implement the code below. | ||
605 | |||
606 | List<DirGroupsReplyData> groups = m_groupData.FindGroups(null, name); | ||
607 | |||
608 | DirGroupsReplyData? foundGroup = null; | ||
609 | |||
610 | foreach (DirGroupsReplyData group in groups) | ||
611 | { | ||
612 | // We must have an exact match - I believe FindGroups will return partial matches | ||
613 | if (group.groupName == name) | ||
614 | foundGroup = group; | ||
615 | } | ||
616 | |||
617 | if (null == foundGroup) | ||
618 | return null; | ||
619 | |||
620 | return GetGroupRecord(((DirGroupsReplyData)foundGroup).groupID); | ||
621 | } | 601 | } |
622 | 602 | ||
623 | public void ActivateGroup(IClientAPI remoteClient, UUID groupID) | 603 | public void ActivateGroup(IClientAPI remoteClient, UUID groupID) |