From 3711139801743b0bcc20384e35903a4581fe6b7a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 May 2017 23:04:04 +0300 Subject: Add chat command for check player ip. --- src/gui/popups/popupmenu.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index da729206c..6c359b5ff 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -1253,10 +1253,6 @@ void PopupMenu::handleLink(const std::string &link, if (mTextField) mTextField->handlePaste(); } - else if (link == "ipcheck" && !mName.empty()) - { - adminHandler->ipcheckName(mName); - } else if (link == "gm" && !mName.empty()) { showGMPopup(mName); @@ -2800,7 +2796,7 @@ void PopupMenu::showPlayerGMCommands(const std::string &name) { // TRANSLATORS: popup menu item // TRANSLATORS: check player ip - mBrowserBox->addRow("ipcheck", _("Check ip")); + mBrowserBox->addRow("/ipcheck 'NAME'", _("Check ip")); } // TRANSLATORS: popup menu item // TRANSLATORS: go to player position -- cgit v1.2.3-70-g09d2