From abeebcba08ff2abc2993657b9043543223dce3d1 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Tue, 13 Feb 2024 11:50:48 +0100 Subject: 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. --- src/commandhandler.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/commandhandler.cpp') 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 .")); @@ -215,13 +204,6 @@ void CommandHandler::handleHelp(const std::string &args, ChatTab *tab) { // Nothing to do } - else if (args == "announce") - { - tab->chatLog(_("Command: /announce ")); - tab->chatLog(_("*** only available to a GM ***")); - tab->chatLog(_("This command sends the message to " - "all players currently online.")); - } else if (args == "clear") { tab->chatLog(_("Command: /clear")); -- cgit v1.2.3-70-g09d2