From 83018227d49168b67a58fd80f5bb415b4f78d0ff Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Dec 2014 13:59:44 +0300 Subject: Remove "admin-kick" popup menu handler. --- src/gui/popups/popupmenu.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/gui') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 56da65cc6..8ebd34473 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -982,13 +982,7 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "admin-kick" && being && - (being->getType() == ActorType::Player || - being->getType() == ActorType::Monster)) - { - adminHandler->kick(being->getId()); - } - else if (link == "chat close" && mTab) + if (link == "chat close" && mTab) { inputManager.executeChatCommand(InputAction::CLOSE_CHAT_TAB, std::string(), mTab); @@ -2649,7 +2643,7 @@ void PopupMenu::showGMPopup() { // TRANSLATORS: popup menu item // TRANSLATORS: kick player - mBrowserBox->addRow("admin-kick", _("Kick")); + mBrowserBox->addRow("/kick :'BEINGID'", _("Kick")); } } -- cgit v1.2.3-70-g09d2