From 6d426d55fed55f2c01bdafca348cc8bbb06ee063 Mon Sep 17 00:00:00 2001 From: Roderic Morris Date: Sun, 26 Oct 2008 00:27:34 +0000 Subject: get rid of /admin commands --- src/commandhandler.cpp | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src/commandhandler.cpp') diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 66f746f3..2475457a 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -77,10 +77,6 @@ void CommandHandler::handleCommand(const std::string &command) { handleTopic(args); } - else if (type == "admin") - { - Net::GameServer::Player::say("/" + args); - } else if (type == "clear") { handleClear(); @@ -143,27 +139,10 @@ void CommandHandler::handleHelp(const std::string &args) chatWindow->chatLog("/join > Join or create a channel"); chatWindow->chatLog("/topic > Set the topic of the current channel"); chatWindow->chatLog("/quit > Leave a channel"); - chatWindow->chatLog("/admin > Send a command to the server (GM only)"); chatWindow->chatLog("/clear > Clears this window"); chatWindow->chatLog("/party > Invite a user to party"); chatWindow->chatLog("For more information, type /help "); } - else if (args == "admin") - { - chatWindow->chatLog("Command: /admin "); - chatWindow->chatLog("*** only available to a GM ***"); - chatWindow->chatLog("This command sends an admin command to the server."); - chatWindow->chatLog(" can be:"); - chatWindow->chatLog("reload "); - chatWindow->chatLog("warp "); - chatWindow->chatLog("item "); - chatWindow->chatLog("drop "); - chatWindow->chatLog("money "); - chatWindow->chatLog("spawn "); - chatWindow->chatLog("goto "); - chatWindow->chatLog("recall "); - chatWindow->chatLog("ban "); - } else if (args == "announce") { chatWindow->chatLog("Command: /announce "); -- cgit v1.2.3-70-g09d2