summaryrefslogtreecommitdiff
path: root/src/actions
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/actions
parentee82a8e3ca61d176e52078f8326d92e2220af2d0 (diff)
downloadmanaplus-3711139801743b0bcc20384e35903a4581fe6b7a.tar.gz
manaplus-3711139801743b0bcc20384e35903a4581fe6b7a.tar.bz2
manaplus-3711139801743b0bcc20384e35903a4581fe6b7a.tar.xz
manaplus-3711139801743b0bcc20384e35903a4581fe6b7a.zip
Add chat command for check player ip.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp9
-rw-r--r--src/actions/commands.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp
index 81f40697b..53c1f4fd0 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1456,6 +1456,15 @@ impHandler(commandRecallPc)
return true;
}
+impHandler(commandIpCheck)
+{
+ const std::string args = event.args;
+ if (args.empty())
+ return false;
+ adminHandler->ipcheckName(args);
+ return true;
+}
+
impHandler(commandKiller)
{
adminHandler->killer(event.args);
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 24860b8f2..5d6e7ce58 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -125,6 +125,7 @@ namespace Actions
decHandler(commandGotoNpc);
decHandler(commandGotoPc);
decHandler(commandRecallPc);
+ decHandler(commandIpCheck);
decHandler(commandKiller);
decHandler(commandKillable);
decHandler(commandHeal);