2006-11-28 07:48:43 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using libsecondlife;
|
|
|
|
|
using libsecondlife.Packets;
|
|
|
|
|
|
|
|
|
|
namespace libsecondlife.TestClient
|
|
|
|
|
{
|
|
|
|
|
public class LogoutCommand : Command
|
|
|
|
|
{
|
2006-12-21 08:53:08 +00:00
|
|
|
public LogoutCommand(TestClient testClient)
|
2006-11-28 07:48:43 +00:00
|
|
|
{
|
|
|
|
|
Name = "logout";
|
|
|
|
|
Description = "Log this avatar out";
|
|
|
|
|
}
|
|
|
|
|
|
2006-12-21 08:53:08 +00:00
|
|
|
public override string Execute(string[] args, LLUUID fromAgentID)
|
2006-11-28 07:48:43 +00:00
|
|
|
{
|
|
|
|
|
string name = Client.ToString();
|
2007-01-04 05:41:23 +00:00
|
|
|
Client.ClientManager.Logout(Client);
|
2006-12-16 09:07:28 +00:00
|
|
|
return "Logged " + name + " out";
|
2006-11-28 07:48:43 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|