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/gui/popupmenu.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/gui/popupmenu.cpp') diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 4814937e..048ecc78 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -327,12 +327,10 @@ void PopupMenu::handleLink(const std::string &link) chatWindow->addInputText(name); } - else if (link == "admin-kick" && - being && - (being->getType() == ActorSprite::PLAYER || - being->getType() == ActorSprite::MONSTER)) + else if (link == "admin-kick" && being && + being->getType() == ActorSprite::PLAYER) { - Net::getAdminHandler()->kick(being->getId()); + Net::getAdminHandler()->kick(being->getName()); } // Unknown actions -- cgit v1.2.3-70-g09d2