diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-25 23:04:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-25 23:04:04 +0300 |
commit | 3711139801743b0bcc20384e35903a4581fe6b7a (patch) | |
tree | a5724d505ae2cf297229832e994849d02278c9ae /src/actions | |
parent | ee82a8e3ca61d176e52078f8326d92e2220af2d0 (diff) | |
download | mv-3711139801743b0bcc20384e35903a4581fe6b7a.tar.gz mv-3711139801743b0bcc20384e35903a4581fe6b7a.tar.bz2 mv-3711139801743b0bcc20384e35903a4581fe6b7a.tar.xz mv-3711139801743b0bcc20384e35903a4581fe6b7a.zip |
Add chat command for check player ip.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 9 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
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); |