diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-13 11:50:48 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-02-13 20:55:48 +0100 |
commit | abeebcba08ff2abc2993657b9043543223dce3d1 (patch) | |
tree | 4850e54c0690df454f9e3e2dcad39f7ea971f8bc /src/commandhandler.cpp | |
parent | 46ba64726b4261a4c25b579187682508d99b9e32 (diff) | |
download | mana-abeebcba08ff2abc2993657b9043543223dce3d1.tar.gz mana-abeebcba08ff2abc2993657b9043543223dce3d1.tar.bz2 mana-abeebcba08ff2abc2993657b9043543223dce3d1.tar.xz mana-abeebcba08ff2abc2993657b9043543223dce3d1.zip |
Removed no longer supported admin messages
* Removed /announce command
* Changed "Kick player" in player pop-up to kick by name
Other messages, like CMSG_ADMIN_HIDE, CMSG_ADMIN_MUTE and
CMSG_ADMIN_LOCAL_ANNOUNCE were already not used by the client. Also,
none of this was implemented for Manaserv.
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r-- | src/commandhandler.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp index 923721e4..3211dcc3 100644 --- a/src/commandhandler.cpp +++ b/src/commandhandler.cpp @@ -59,10 +59,6 @@ void CommandHandler::handleCommand(const std::string &command, ChatTab *tab) { // Nothing to do } - else if (type == "announce") - { - handleAnnounce(args, tab); - } else if (type == "where") { handleWhere(args, tab); @@ -153,11 +149,6 @@ char CommandHandler::parseBoolean(const std::string &value) return -1; } -void CommandHandler::handleAnnounce(const std::string &args, ChatTab *tab) -{ - Net::getAdminHandler()->announce(args); -} - void CommandHandler::handleHelp(const std::string &args, ChatTab *tab) { if (args == "") @@ -197,8 +188,6 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab) tab->chatLog(_("/present > Get list of players present " "(sent to chat log, if logging)")); - tab->chatLog(_("/announce > Global announcement (GM only)")); - tab->showHelp(); // Allow the tab to show it's help tab->chatLog(_("For more information, type /help <command>.")); @@ -215,13 +204,6 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab) { // Nothing to do } - else if (args == "announce") - { - tab->chatLog(_("Command: /announce <msg>")); - tab->chatLog(_("*** only available to a GM ***")); - tab->chatLog(_("This command sends the message <msg> to " - "all players currently online.")); - } else if (args == "clear") { tab->chatLog(_("Command: /clear")); |