diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-25 22:43:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-25 22:43:25 +0300 |
commit | ee82a8e3ca61d176e52078f8326d92e2220af2d0 (patch) | |
tree | beeef611c4b41dc056663126f6abb50dde91ef38 /src/actions | |
parent | 0f49c02c2813ce853a7699b673103c8ef5edc05d (diff) | |
download | ManaVerse-ee82a8e3ca61d176e52078f8326d92e2220af2d0.tar.gz ManaVerse-ee82a8e3ca61d176e52078f8326d92e2220af2d0.tar.bz2 ManaVerse-ee82a8e3ca61d176e52078f8326d92e2220af2d0.tar.xz ManaVerse-ee82a8e3ca61d176e52078f8326d92e2220af2d0.zip |
Add chat command for recall player.
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 08c1fcbba..81f40697b 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1447,6 +1447,15 @@ impHandler(commandGotoPc) return true; } +impHandler(commandRecallPc) +{ + const std::string args = event.args; + if (args.empty()) + return false; + adminHandler->recallName(args); + return true; +} + impHandler(commandKiller) { adminHandler->killer(event.args); diff --git a/src/actions/commands.h b/src/actions/commands.h index ed4deb9f5..24860b8f2 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -124,6 +124,7 @@ namespace Actions decHandler(commandRandomWarp); decHandler(commandGotoNpc); decHandler(commandGotoPc); + decHandler(commandRecallPc); decHandler(commandKiller); decHandler(commandKillable); decHandler(commandHeal); |