From 9208926ca3f162102c08b8e5331f5a1c38681d4f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Feb 2016 00:35:23 +0300 Subject: Add gm chat command /whodrops --- src/actions/commands.cpp | 9 +++++++++ src/actions/commands.h | 1 + 2 files changed, 10 insertions(+) (limited to 'src/actions') diff --git a/src/actions/commands.cpp b/src/actions/commands.cpp index 2e7252985..2eec5c392 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1236,4 +1236,13 @@ impHandler(itemInfo) return true; } +impHandler(whoDrops) +{ + const std::string args = event.args; + if (args.empty()) + return false; + adminHandler->whoDrops(args); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index 7f37f1656..4378e2127 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -99,6 +99,7 @@ namespace Actions decHandler(ignorePickup); decHandler(monsterInfo); decHandler(itemInfo); + decHandler(whoDrops); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2