TestClient can load a list of accounts from a file at the command line now, and a slew of bugfixes
git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@647 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
@@ -322,18 +322,27 @@ Begin:
|
||||
LLUUID regionID, LLVector3 position, byte dialog, bool groupIM, LLUUID imSessionID, DateTime timestamp,
|
||||
string message, byte offline, byte[] binaryBucket)
|
||||
{
|
||||
if (GroupMembers != null && !GroupMembers.ContainsKey(fromAgentID) && fromAgentName.ToLower().TrimEnd() != Master.ToLower().TrimEnd())
|
||||
if (Master.Length > 0)
|
||||
{
|
||||
// Not a member of my group and not master, ignore the IM
|
||||
Console.WriteLine("<IM>" + fromAgentName + " (ignored): " + message);
|
||||
|
||||
return;
|
||||
if (fromAgentName.ToLower().Trim() != Master.ToLower().Trim())
|
||||
{
|
||||
// Received an IM from someone that is not the bot's master, ignore
|
||||
Console.WriteLine("<IM>" + fromAgentName + " (not master): " + message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("<IM>" + fromAgentName + ": " + message);
|
||||
if (GroupMembers != null && !GroupMembers.ContainsKey(fromAgentID))
|
||||
{
|
||||
// Received an IM from someone outside the bot's group, ignore
|
||||
Console.WriteLine("<IM>" + fromAgentName + " (not in group): " + message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Console.WriteLine("<IM>" + fromAgentName + ": " + message);
|
||||
|
||||
if (Clients.ContainsKey(toAgentID))
|
||||
{
|
||||
if (dialog == 22)
|
||||
@@ -348,6 +357,7 @@ Begin:
|
||||
}
|
||||
else
|
||||
{
|
||||
// This shouldn't happen
|
||||
Console.WriteLine("A bot that we aren't tracking received an IM?");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user