diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-14 13:59:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-14 13:59:44 +0300 |
commit | 83018227d49168b67a58fd80f5bb415b4f78d0ff (patch) | |
tree | a4ed4f917fb0a64993a27268f94e355a6381b76c /src/gui/popups/popupmenu.cpp | |
parent | 66319a9c3647c77bd13ca8c9a46bf15ba10863fa (diff) | |
download | ManaVerse-83018227d49168b67a58fd80f5bb415b4f78d0ff.tar.gz ManaVerse-83018227d49168b67a58fd80f5bb415b4f78d0ff.tar.bz2 ManaVerse-83018227d49168b67a58fd80f5bb415b4f78d0ff.tar.xz ManaVerse-83018227d49168b67a58fd80f5bb415b4f78d0ff.zip |
Remove "admin-kick" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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")); } } |