* XmlRpcCS moved to SLProxy folder, since SLProxy still relies on it * Client.Network.LoginError is now obsolete, replaced by Client.Network.LoginErrorKey and Client.Network.LoginMessage * Client.Self now has StartLocation and AgentAccess strings after a successful Login * Removed the null LLUUID check in _Packets_.cs since LLUUID will be a struct soon * Fixed directories in mapgen.bat * AgentThrottle class lives in AgentThrottle.cs now git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@1097 52acb1d6-8a22-11de-b505-999d5b087335
35 lines
922 B
C#
35 lines
922 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Reflection;
|
|
using libsecondlife;
|
|
using libsecondlife.Packets;
|
|
|
|
namespace libsecondlife.TestClient
|
|
{
|
|
public class LoginCommand : Command
|
|
{
|
|
public LoginCommand(TestClient testClient)
|
|
{
|
|
Name = "login";
|
|
Description = "Logs in another avatar";
|
|
}
|
|
|
|
public override string Execute(string[] args, LLUUID fromAgentID)
|
|
{
|
|
if (args.Length != 3)
|
|
return "usage: login firstname lastname password";
|
|
|
|
SecondLife newClient = Client.ClientManager.Login(args);
|
|
|
|
if (newClient.Network.Connected)
|
|
{
|
|
return "Logged in " + newClient.ToString();
|
|
}
|
|
else
|
|
{
|
|
return "Failed to login: " + newClient.Network.LoginMessage;
|
|
}
|
|
}
|
|
}
|
|
}
|