diff --git a/OpenMetaverse/DirectoryManager.cs b/OpenMetaverse/DirectoryManager.cs
index 0a4844a4..8566a179 100644
--- a/OpenMetaverse/DirectoryManager.cs
+++ b/OpenMetaverse/DirectoryManager.cs
@@ -159,11 +159,11 @@ namespace OpenMetaverse
FilterMature = 1 << 22,
///
PGOnly = 1 << 23,
- /// Include PG land in results. This flag is used when searching both the Events and Land sales databases
+ /// Include PG land in results. This flag is used when searching both the Groups, Events and Land sales databases
IncludePG = 1 << 24,
- /// Include Mature land in results. This flag is used when searching both the Events and Land sales databases
+ /// Include Mature land in results. This flag is used when searching both the Groups, Events and Land sales databases
IncludeMature = 1 << 25,
- /// Include Adult land in results. This flag is used when searching both the Events and Land sales databases
+ /// Include Adult land in results. This flag is used when searching both the Groups, Events and Land sales databases
IncludeAdult = 1 << 26,
///
AdultOnly = 1 << 27
@@ -949,14 +949,27 @@ namespace OpenMetaverse
/// Search for Groups
///
/// The name or portion of the name of the group you wish to search for
- ///
+ /// Start from the match number
///
public UUID StartGroupSearch(string searchText, int queryStart)
+ {
+ return StartGroupSearch(searchText, queryStart, DirFindFlags.Groups | DirFindFlags.IncludePG
+ | DirFindFlags.IncludeMature | DirFindFlags.IncludeAdult);
+ }
+
+ ///
+ /// Search for Groups
+ ///
+ /// The name or portion of the name of the group you wish to search for
+ /// Start from the match number
+ /// Search flags
+ ///
+ public UUID StartGroupSearch(string searchText, int queryStart, DirFindFlags flags)
{
DirFindQueryPacket find = new DirFindQueryPacket();
find.AgentData.AgentID = Client.Self.AgentID;
find.AgentData.SessionID = Client.Self.SessionID;
- find.QueryData.QueryFlags = (uint)DirFindFlags.Groups;
+ find.QueryData.QueryFlags = (uint)flags;
find.QueryData.QueryText = Utils.StringToBytes(searchText);
find.QueryData.QueryID = UUID.Random();
find.QueryData.QueryStart = queryStart;