TestClient:

* Commands from the console and scripts are executed on a separate thread for each bot now
* Added support for starting without any logins
* Changed handling of login and quit commands (these are really hacks)
* Added support for passing a loginuri to the login command

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@2280 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2008-10-08 20:21:32 +00:00
parent b8c9b612c3
commit 16c07999af
5 changed files with 88 additions and 113 deletions

View File

@@ -11,25 +11,14 @@ namespace OpenMetaverse.TestClient
public LoginCommand(TestClient testClient)
{
Name = "login";
Description = "Logs in another avatar";
Description = "Logs in another avatar. Usage: login firstname lastname [simname] [loginuri]";
Category = CommandCategory.TestClient;
}
public override string Execute(string[] args, UUID fromAgentID)
{
if (args.Length != 3 && args.Length != 4)
return "usage: login firstname lastname password [simname]";
GridClient newClient = Client.ClientManager.Login(args);
if (newClient.Network.Connected)
{
return "Logged in " + newClient.ToString();
}
else
{
return "Failed to login: " + newClient.Network.LoginMessage;
}
// This is a dummy command. Calls to it should be intercepted and handled specially
return "This command should not be executed directly";
}
}
}