summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-13 11:50:48 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-02-13 20:55:48 +0100
commitabeebcba08ff2abc2993657b9043543223dce3d1 (patch)
tree4850e54c0690df454f9e3e2dcad39f7ea971f8bc /src/gui/popupmenu.cpp
parent46ba64726b4261a4c25b579187682508d99b9e32 (diff)
downloadmana-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/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp8
1 files changed, 3 insertions, 5 deletions
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