diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-24 21:48:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-24 21:48:57 +0300 |
commit | 24dc1791c0b07e10334d61b95271cab7c2abcbf1 (patch) | |
tree | da05e2b67820f525bd882d962475c8a3685a34b7 /src/actions | |
parent | 026fdd913ea337e0f7775eba957f88fc9ced7690 (diff) | |
download | manaverse-24dc1791c0b07e10334d61b95271cab7c2abcbf1.tar.gz manaverse-24dc1791c0b07e10334d61b95271cab7c2abcbf1.tar.bz2 manaverse-24dc1791c0b07e10334d61b95271cab7c2abcbf1.tar.xz manaverse-24dc1791c0b07e10334d61b95271cab7c2abcbf1.zip |
Add chat command /spawnevilclone. Also add it to player context menu.
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 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 |