diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-24 01:42:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-24 01:42:41 +0300 |
commit | 5b03a091589806dd2250db646b7739f09e55d424 (patch) | |
tree | da7d5f0f281560c7ef31bff779a35c1bbd296dc2 /src/actions | |
parent | 398e7e04c6232d2076a44040548cbc88497a155b (diff) | |
download | manaplus-5b03a091589806dd2250db646b7739f09e55d424.tar.gz manaplus-5b03a091589806dd2250db646b7739f09e55d424.tar.bz2 manaplus-5b03a091589806dd2250db646b7739f09e55d424.tar.xz manaplus-5b03a091589806dd2250db646b7739f09e55d424.zip |
Add chat command for gm /mobsearch
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 2eec5c392..2adef54ca 100644 --- a/src/actions/commands.cpp +++ b/src/actions/commands.cpp @@ -1245,4 +1245,13 @@ impHandler(whoDrops) return true; } +impHandler(mobSearch) +{ + const std::string args = event.args; + if (args.empty()) + return false; + adminHandler->mobSearch(args); + return true; +} + } // namespace Actions diff --git a/src/actions/commands.h b/src/actions/commands.h index 4378e2127..07b5dda2e 100644 --- a/src/actions/commands.h +++ b/src/actions/commands.h @@ -100,6 +100,7 @@ namespace Actions decHandler(monsterInfo); decHandler(itemInfo); decHandler(whoDrops); + decHandler(mobSearch); } // namespace Actions #undef decHandler |