summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-25 22:43:25 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-25 22:43:25 +0300
commitee82a8e3ca61d176e52078f8326d92e2220af2d0 (patch)
treebeeef611c4b41dc056663126f6abb50dde91ef38 /src/actions
parent0f49c02c2813ce853a7699b673103c8ef5edc05d (diff)
downloadmanaverse-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.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 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);