From 5b03a091589806dd2250db646b7739f09e55d424 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 24 Feb 2016 01:42:03 +0300 Subject: Add chat command for gm /mobsearch --- 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 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 -- cgit v1.2.3-70-g09d2