diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-25 20:25:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-25 20:25:03 +0300 |
commit | 64a067458ea169b9ff5b9a78ed1a011da86e8bdf (patch) | |
tree | 0bae841148a69a2bd160b914d3d17ed0b4ac3421 /src/actions | |
parent | 704b5b31fea63483c81f0744d88e46a856573424 (diff) | |
download | manaplus-64a067458ea169b9ff5b9a78ed1a011da86e8bdf.tar.gz manaplus-64a067458ea169b9ff5b9a78ed1a011da86e8bdf.tar.bz2 manaplus-64a067458ea169b9ff5b9a78ed1a011da86e8bdf.tar.xz manaplus-64a067458ea169b9ff5b9a78ed1a011da86e8bdf.zip |
Add chat command /killable. Also add it to player context menu.
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 6 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 6c7cb1d8f..426c89da7 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1402,4 +1402,10 @@ impHandler(commandKiller) return true; } +impHandler(commandKillable) +{ + adminHandler->killable(event.args); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index 9328f1d2c..19581facc 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -121,6 +121,7 @@ namespace Actions decHandler(commandRandomWarp); decHandler(commandGotoNpc); decHandler(commandKiller); + decHandler(commandKillable); } // namespace Actions #undef decHandler |