From 5b6afeafbc249ba88dcc20d1fbc98ce12418b21b Mon Sep 17 00:00:00 2001 From: gareth Date: Tue, 8 May 2007 00:10:04 +0000 Subject: Brought in TestClient code for teh fork --- ExportBot/Commands/MD5Command.cs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ExportBot/Commands/MD5Command.cs (limited to 'ExportBot/Commands/MD5Command.cs') 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 @@ +using System; +using libsecondlife; + +namespace libsecondlife.TestClient +{ + public class MD5Command : Command + { + public MD5Command(TestClient testClient) + { + Name = "md5"; + Description = "Creates an MD5 hash from a given password. Usage: md5 [password]"; + } + + public override string Execute(string[] args, LLUUID fromAgentID) + { + if (args.Length == 1) + return Helpers.MD5(args[0]); + else + return "Usage: md5 [password]"; + } + } +} -- cgit v1.1