summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-25 20:13:04 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-25 20:13:04 +0300
commit704b5b31fea63483c81f0744d88e46a856573424 (patch)
tree37a3530e9be27f0aca4283ec90944174aae542fa /src/actions
parent25bf3308cf490313b4a86b78643226f078ce4f7e (diff)
downloadmv-704b5b31fea63483c81f0744d88e46a856573424.tar.gz
mv-704b5b31fea63483c81f0744d88e46a856573424.tar.bz2
mv-704b5b31fea63483c81f0744d88e46a856573424.tar.xz
mv-704b5b31fea63483c81f0744d88e46a856573424.zip
Add chat command /killer. 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 13bb0b622..6c7cb1d8f 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1396,4 +1396,10 @@ impHandler(commandGotoNpc)
return true;
}
+impHandler(commandKiller)
+{
+ adminHandler->killer(event.args);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index f1dc28356..9328f1d2c 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -120,6 +120,7 @@ namespace Actions
decHandler(commandLoadPosition);
decHandler(commandRandomWarp);
decHandler(commandGotoNpc);
+ decHandler(commandKiller);
} // namespace Actions
#undef decHandler