summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-25 22:09:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-25 22:09:53 +0300
commit46f4e5fb5c77d01de334e059b88837f8c7fe1f3e (patch)
tree3d20a6b2902e70caeedde5afcb65d0cb5913e69a /src/actions
parentf8423bd2d31ac4da409cabdc84fa2e3962336103 (diff)
downloadplus-46f4e5fb5c77d01de334e059b88837f8c7fe1f3e.tar.gz
plus-46f4e5fb5c77d01de334e059b88837f8c7fe1f3e.tar.bz2
plus-46f4e5fb5c77d01de334e059b88837f8c7fe1f3e.tar.xz
plus-46f4e5fb5c77d01de334e059b88837f8c7fe1f3e.zip
Add chat command /immortal. 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 8cc076fba..969807577 100644
--- a/src/actions/commands.cpp
+++ b/src/actions/commands.cpp
@@ -1429,4 +1429,10 @@ impHandler(commandDisguise)
return true;
}
+impHandler(commandImmortal)
+{
+ adminHandler->immortal(event.args);
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/commands.h b/src/actions/commands.h
index fa21e942c..1e642ec9e 100644
--- a/src/actions/commands.h
+++ b/src/actions/commands.h
@@ -125,6 +125,7 @@ namespace Actions
decHandler(commandHeal);
decHandler(commandAlive);
decHandler(commandDisguise);
+ decHandler(commandImmortal);
} // namespace Actions
#undef decHandler