summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-14 13:59:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-14 13:59:44 +0300
commit83018227d49168b67a58fd80f5bb415b4f78d0ff (patch)
treea4ed4f917fb0a64993a27268f94e355a6381b76c /src/gui/popups/popupmenu.cpp
parent66319a9c3647c77bd13ca8c9a46bf15ba10863fa (diff)
downloadplus-83018227d49168b67a58fd80f5bb415b4f78d0ff.tar.gz
plus-83018227d49168b67a58fd80f5bb415b4f78d0ff.tar.bz2
plus-83018227d49168b67a58fd80f5bb415b4f78d0ff.tar.xz
plus-83018227d49168b67a58fd80f5bb415b4f78d0ff.zip
Remove "admin-kick" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp10
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"));
}
}