diff options
Diffstat (limited to '')
-rw-r--r-- | ExportBot/Commands/LoginCommand.cs | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/ExportBot/Commands/LoginCommand.cs b/ExportBot/Commands/LoginCommand.cs deleted file mode 100644 index 64675f5..0000000 --- a/ExportBot/Commands/LoginCommand.cs +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Reflection; | ||
4 | using libsecondlife; | ||
5 | using libsecondlife.Packets; | ||
6 | |||
7 | namespace libsecondlife.TestClient | ||
8 | { | ||
9 | public class LoginCommand : Command | ||
10 | { | ||
11 | public LoginCommand(TestClient testClient) | ||
12 | { | ||
13 | Name = "login"; | ||
14 | Description = "Logs in another avatar"; | ||
15 | } | ||
16 | |||
17 | public override string Execute(string[] args, LLUUID fromAgentID) | ||
18 | { | ||
19 | if (args.Length != 3 && args.Length != 4) | ||
20 | return "usage: login firstname lastname password [simname]"; | ||
21 | |||
22 | SecondLife newClient = Client.ClientManager.Login(args); | ||
23 | |||
24 | if (newClient.Network.Connected) | ||
25 | { | ||
26 | return "Logged in " + newClient.ToString(); | ||
27 | } | ||
28 | else | ||
29 | { | ||
30 | return "Failed to login: " + newClient.Network.LoginStatusMessage; | ||
31 | } | ||
32 | } | ||
33 | } | ||
34 | } | ||