summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-25 20:25:03 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-25 20:25:03 +0300
commit64a067458ea169b9ff5b9a78ed1a011da86e8bdf (patch)
tree0bae841148a69a2bd160b914d3d17ed0b4ac3421 /src/actions
parent704b5b31fea63483c81f0744d88e46a856573424 (diff)
downloadManaVerse-64a067458ea169b9ff5b9a78ed1a011da86e8bdf.tar.gz
ManaVerse-64a067458ea169b9ff5b9a78ed1a011da86e8bdf.tar.bz2
ManaVerse-64a067458ea169b9ff5b9a78ed1a011da86e8bdf.tar.xz
ManaVerse-64a067458ea169b9ff5b9a78ed1a011da86e8bdf.zip
Add chat command /killable. Also add it to player context menu.
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/commands.cpp6
-rw-r--r--src/actions/commands.h1
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