LIBOMV-375 Removes duplicate GroupPowers struct, adds XML comments to the one that stayed

LIBOMV-374 Adds new ModerateChatSessions method to AgentManager which allows a group member with Moderator rights to silence idiots
LIBOMV-372 Fixes exception thrown while using Group Chat functions caused by recent changes to the LL Simulator, Also fixes TestClient IMGroup command
* Adds (2) Events OnGroupChatJoin/OnGroupChatLeft fired when a member enters or leaves a group chat session



git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2207 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Jim Radford
2008-09-09 04:58:58 +00:00
parent 9fda90f2a0
commit 1a886fb085
4 changed files with 719 additions and 492 deletions

View File

@@ -33,7 +33,7 @@ namespace OpenMetaverse.TestClient
message = message.TrimEnd();
if (message.Length > 1023) message = message.Remove(1023);
Client.Self.OnGroupChatJoin += new AgentManager.GroupChatJoined(Self_OnGroupChatJoin);
Client.Self.OnGroupChatJoin += new AgentManager.GroupChatJoinedCallback(Self_OnGroupChatJoin);
if (!Client.Self.GroupChatSessions.ContainsKey(ToGroupID))
{
WaitForSessionStart.Reset();
@@ -44,7 +44,7 @@ namespace OpenMetaverse.TestClient
WaitForSessionStart.Set();
}
if (WaitForSessionStart.WaitOne(10000, false))
if (WaitForSessionStart.WaitOne(20000, false))
{
Client.Self.InstantMessageGroup(ToGroupID, message);
}
@@ -53,7 +53,7 @@ namespace OpenMetaverse.TestClient
return "Timeout waiting for group session start";
}
Client.Self.OnGroupChatJoin -= new AgentManager.GroupChatJoined(Self_OnGroupChatJoin);
Client.Self.OnGroupChatJoin -= new AgentManager.GroupChatJoinedCallback(Self_OnGroupChatJoin);
return "Instant Messaged group " + ToGroupID.ToString() + " with message: " + message;
}
else
@@ -62,11 +62,11 @@ namespace OpenMetaverse.TestClient
}
}
void Self_OnGroupChatJoin(UUID groupChatSessionID, UUID tmpSessionID, bool success)
void Self_OnGroupChatJoin(UUID groupChatSessionID, string sessionName, UUID tmpSessionID, bool success)
{
if (success)
{
Console.WriteLine("Join Group Chat Success!");
Console.WriteLine("Joined {0} Group Chat Success!", sessionName);
WaitForSessionStart.Set();
}
else