summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-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