diff options
author | Roderic Morris <roderic@ccs.neu.edu> | 2008-10-26 00:27:34 +0000 |
---|---|---|
committer | Roderic Morris <roderic@ccs.neu.edu> | 2008-10-26 00:27:34 +0000 |
commit | 6d426d55fed55f2c01bdafca348cc8bbb06ee063 (patch) | |
tree | 7335967db24330a89e87cea7d6d62f5df4f2aadd /src/commandhandler.cpp | |
parent | 050cee64b64aba57de84383c7138c1ad0f4ded55 (diff) | |
download | mana-6d426d55fed55f2c01bdafca348cc8bbb06ee063.tar.gz mana-6d426d55fed55f2c01bdafca348cc8bbb06ee063.tar.bz2 mana-6d426d55fed55f2c01bdafca348cc8bbb06ee063.tar.xz mana-6d426d55fed55f2c01bdafca348cc8bbb06ee063.zip |
get rid of /admin commands
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
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 <command>"); } - else if (args == "admin") - { - chatWindow->chatLog("Command: /admin <command>"); - chatWindow->chatLog("*** only available to a GM ***"); - chatWindow->chatLog("This command sends an admin command to the server."); - chatWindow->chatLog("<command> can be:"); - chatWindow->chatLog("reload <db>"); - chatWindow->chatLog("warp <name> <map> <x> <y>"); - chatWindow->chatLog("item <name> <id> <quantity>"); - chatWindow->chatLog("drop <id> <quantity>"); - chatWindow->chatLog("money <name> <quantity>"); - chatWindow->chatLog("spawn <id> <quantity>"); - chatWindow->chatLog("goto <name>"); - chatWindow->chatLog("recall <name>"); - chatWindow->chatLog("ban <name> <duration>"); - } else if (args == "announce") { chatWindow->chatLog("Command: /announce <msg>"); |