From bb0b0d183a4f777653df14f5e003b893e47a9e76 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 25 Feb 2016 22:41:18 +0300 Subject: Add chat command /nuke. Also add it to player context menu. --- src/actions/commands.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/actions/commands.cpp') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index f0dd84500..1bc922a1f 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1441,4 +1441,13 @@ impHandler(commandHide) return true; } +impHandler(commandNuke) +{ + const std::string args = event.args; + if (args.empty()) + return false; + adminHandler->nuke(args); + return true; +} + } // namespace Actions -- cgit v1.2.3-70-g09d2