From e0b4a2665505279e58f2a618272db5245f275518 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Feb 2016 20:15:18 +0300 Subject: Add chat command /spawn. Also add it to monster 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 e6721e4f0..7c451c861 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1323,4 +1323,13 @@ impHandler(commandShowAccountInfo) return true; } +impHandler(commandSpawn) +{ + const std::string args = event.args; + if (args.empty()) + return false; + adminHandler->spawn(args); + return true; +} + } // namespace Actions -- cgit v1.2.3-60-g2f50