summaryrefslogtreecommitdiff
path: root/src/actions/commands.cpp
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/commands.cpp
parent026fdd913ea337e0f7775eba957f88fc9ced7690 (diff)
downloadmanaplus-24dc1791c0b07e10334d61b95271cab7c2abcbf1.tar.gz
manaplus-24dc1791c0b07e10334d61b95271cab7c2abcbf1.tar.bz2
manaplus-24dc1791c0b07e10334d61b95271cab7c2abcbf1.tar.xz
manaplus-24dc1791c0b07e10334d61b95271cab7c2abcbf1.zip
Add chat command /spawnevilclone. Also add it to player context menu.
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 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