From 64a98c736848de6099254f23483058668273c1a5 Mon Sep 17 00:00:00 2001 From: gareth Date: Mon, 14 May 2007 03:13:47 +0000 Subject: Finished off adding the new management API to gridserver Updated VersionInfo.cs finally Updated prebuild and rebuilt nant build files Completed Management agent basics --- ExportBot/Commands/Communication/SayCommand.cs | 44 -------------------------- 1 file changed, 44 deletions(-) delete mode 100644 ExportBot/Commands/Communication/SayCommand.cs (limited to 'ExportBot/Commands/Communication/SayCommand.cs') diff --git a/ExportBot/Commands/Communication/SayCommand.cs b/ExportBot/Commands/Communication/SayCommand.cs deleted file mode 100644 index d5717a6..0000000 --- a/ExportBot/Commands/Communication/SayCommand.cs +++ /dev/null @@ -1,44 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using libsecondlife; - -namespace libsecondlife.TestClient -{ - public class SayCommand: Command - { - public SayCommand(TestClient testClient) - { - Name = "say"; - Description = "Say something. (usage: say (optional channel) whatever)"; - } - - public override string Execute(string[] args, LLUUID fromAgentID) - { - int channel = 0; - int startIndex = 0; - - if (args.Length < 1) - { - return "usage: say (optional channel) whatever"; - } - else if (args.Length > 1) - { - if (Int32.TryParse(args[0], out channel)) - startIndex = 1; - } - - StringBuilder message = new StringBuilder(); - - for (int i = startIndex; i < args.Length; i++) - { - message.Append(args[i]); - if (i != args.Length - 1) message.Append(" "); - } - - Client.Self.Chat(message.ToString(), channel, MainAvatar.ChatType.Normal); - - return "Said " + message.ToString(); - } - } -} -- cgit v1.1