diff options
author | gareth | 2007-05-08 00:10:04 +0000 |
---|---|---|
committer | gareth | 2007-05-08 00:10:04 +0000 |
commit | 5b6afeafbc249ba88dcc20d1fbc98ce12418b21b (patch) | |
tree | 78861e5f6ae871d63c83b4ab1cc4c55ea184ed6d /ExportBot/Commands/MD5Command.cs | |
parent | ZOMG! (diff) | |
download | opensim-SC-5b6afeafbc249ba88dcc20d1fbc98ce12418b21b.zip opensim-SC-5b6afeafbc249ba88dcc20d1fbc98ce12418b21b.tar.gz opensim-SC-5b6afeafbc249ba88dcc20d1fbc98ce12418b21b.tar.bz2 opensim-SC-5b6afeafbc249ba88dcc20d1fbc98ce12418b21b.tar.xz |
Brought in TestClient code for teh fork
Diffstat (limited to 'ExportBot/Commands/MD5Command.cs')
-rw-r--r-- | ExportBot/Commands/MD5Command.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/ExportBot/Commands/MD5Command.cs b/ExportBot/Commands/MD5Command.cs new file mode 100644 index 0000000..0a2ee5d --- /dev/null +++ b/ExportBot/Commands/MD5Command.cs | |||
@@ -0,0 +1,22 @@ | |||
1 | using System; | ||
2 | using libsecondlife; | ||
3 | |||
4 | namespace libsecondlife.TestClient | ||
5 | { | ||
6 | public class MD5Command : Command | ||
7 | { | ||
8 | public MD5Command(TestClient testClient) | ||
9 | { | ||
10 | Name = "md5"; | ||
11 | Description = "Creates an MD5 hash from a given password. Usage: md5 [password]"; | ||
12 | } | ||
13 | |||
14 | public override string Execute(string[] args, LLUUID fromAgentID) | ||
15 | { | ||
16 | if (args.Length == 1) | ||
17 | return Helpers.MD5(args[0]); | ||
18 | else | ||
19 | return "Usage: md5 [password]"; | ||
20 | } | ||
21 | } | ||
22 | } | ||