summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-25 23:04:04 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-25 23:04:04 +0300
commit3711139801743b0bcc20384e35903a4581fe6b7a (patch)
treea5724d505ae2cf297229832e994849d02278c9ae /src/gui/popups
parentee82a8e3ca61d176e52078f8326d92e2220af2d0 (diff)
downloadplus-3711139801743b0bcc20384e35903a4581fe6b7a.tar.gz
plus-3711139801743b0bcc20384e35903a4581fe6b7a.tar.bz2
plus-3711139801743b0bcc20384e35903a4581fe6b7a.tar.xz
plus-3711139801743b0bcc20384e35903a4581fe6b7a.zip
Add chat command for check player ip.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp6
1 files changed, 1 insertions, 5 deletions
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