aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ExportBot/Commands/LogoutCommand.cs
blob: cdb5bde0d4fd6449135ccae704f7d67f57c68bf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;
using libsecondlife.Packets;

namespace libsecondlife.TestClient
{
    public class LogoutCommand : Command
    {
        public LogoutCommand(TestClient testClient)
        {
            Name = "logout";
            Description = "Log this avatar out";
        }

        public override string Execute(string[] args, LLUUID fromAgentID)
        {
            string name = Client.ToString();
			Client.ClientManager.Logout(Client);
            return "Logged " + name + " out";
        }
    }
}