diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-24 00:35:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-24 00:35:23 +0300 |
commit | 9208926ca3f162102c08b8e5331f5a1c38681d4f (patch) | |
tree | 05dda363ac2288c444691b889cac87a84e67d00e /src/actions | |
parent | 7eabdd0b8c8281128249659c4d8e8501c10da66e (diff) | |
download | mv-9208926ca3f162102c08b8e5331f5a1c38681d4f.tar.gz mv-9208926ca3f162102c08b8e5331f5a1c38681d4f.tar.bz2 mv-9208926ca3f162102c08b8e5331f5a1c38681d4f.tar.xz mv-9208926ca3f162102c08b8e5331f5a1c38681d4f.zip |
Add gm chat command /whodrops
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/commands.cpp | 9 | ||||
-rw-r--r-- | src/actions/commands.h | 1 |
2 files changed, 10 insertions, 0 deletions
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 |