summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
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/commands.cpp
parent0f49c02c2813ce853a7699b673103c8ef5edc05d (diff)
downloadmv-ee82a8e3ca61d176e52078f8326d92e2220af2d0.tar.gz
mv-ee82a8e3ca61d176e52078f8326d92e2220af2d0.tar.bz2
mv-ee82a8e3ca61d176e52078f8326d92e2220af2d0.tar.xz
mv-ee82a8e3ca61d176e52078f8326d92e2220af2d0.zip
Add chat command for recall player.
Diffstat (limited to 'src/actions/commands.cpp')
-rw-r--r--src/actions/commands.cpp9
1 files changed, 9 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);