summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-24 21:48:57 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-24 21:48:57 +0300
commit24dc1791c0b07e10334d61b95271cab7c2abcbf1 (patch)
treeda05e2b67820f525bd882d962475c8a3685a34b7 /src/actions
parent026fdd913ea337e0f7775eba957f88fc9ced7690 (diff)
downloadmv-24dc1791c0b07e10334d61b95271cab7c2abcbf1.tar.gz
mv-24dc1791c0b07e10334d61b95271cab7c2abcbf1.tar.bz2
mv-24dc1791c0b07e10334d61b95271cab7c2abcbf1.tar.xz
mv-24dc1791c0b07e10334d61b95271cab7c2abcbf1.zip
Add chat command /spawnevilclone. Also add it to player context menu.
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 65acd7c70..fe53ffa61 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1359,4 +1359,13 @@ impHandler(commandSpawnSlaveClone)
return true;
}
+impHandler(commandSpawnEvilClone)
+{
+ const std::string args = event.args;
+ if (args.empty())
+ return false;
+ adminHandler->spawnEvilClone(args);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index 45aa62998..ee4492818 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -115,6 +115,7 @@ namespace Actions
decHandler(commandSpawnSlave);
decHandler(commandSpawnClone);
decHandler(commandSpawnSlaveClone);
+ decHandler(commandSpawnEvilClone);
} // namespace Actions
#undef decHandler