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/net | |
parent | 398e7e04c6232d2076a44040548cbc88497a155b (diff) | |
download | mv-5b03a091589806dd2250db646b7739f09e55d424.tar.gz mv-5b03a091589806dd2250db646b7739f09e55d424.tar.bz2 mv-5b03a091589806dd2250db646b7739f09e55d424.tar.xz mv-5b03a091589806dd2250db646b7739f09e55d424.zip |
Add chat command for gm /mobsearch
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/adminhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/adminhandler.h | 2 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/adminhandler.h | 2 |
5 files changed, 15 insertions, 0 deletions
diff --git a/src/net/adminhandler.h b/src/net/adminhandler.h index d6e1ba11e..caa5098b9 100644 --- a/src/net/adminhandler.h +++ b/src/net/adminhandler.h @@ -102,6 +102,8 @@ class AdminHandler notfinal virtual void itemInfo(const std::string &name) const = 0; virtual void whoDrops(const std::string &name) const = 0; + + virtual void mobSearch(const std::string &name) const = 0; }; } // namespace Net diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 3064a9ca2..d13c29a31 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -177,4 +177,9 @@ void AdminHandler::whoDrops(const std::string &name) const chatHandler->talk("@whodrops " + name, GENERAL_CHANNEL); } +void AdminHandler::mobSearch(const std::string &name) const +{ + chatHandler->talk("@mobsearch " + name, GENERAL_CHANNEL); +} + } // namespace EAthena diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h index e7a5a1473..79ce6cf23 100644 --- a/src/net/eathena/adminhandler.h +++ b/src/net/eathena/adminhandler.h @@ -77,6 +77,8 @@ class AdminHandler final : public Ea::AdminHandler void whoDrops(const std::string &name) const override final; + void mobSearch(const std::string &name) const override final; + protected: static std::string mStatsName; }; diff --git a/src/net/tmwa/adminhandler.cpp b/src/net/tmwa/adminhandler.cpp index 0e1c8ef79..e26806c8d 100644 --- a/src/net/tmwa/adminhandler.cpp +++ b/src/net/tmwa/adminhandler.cpp @@ -138,4 +138,8 @@ void AdminHandler::whoDrops(const std::string &name A_UNUSED) const { } +void AdminHandler::mobSearch(const std::string &name A_UNUSED) const +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/adminhandler.h b/src/net/tmwa/adminhandler.h index 5c0e2558d..94ec3b7be 100644 --- a/src/net/tmwa/adminhandler.h +++ b/src/net/tmwa/adminhandler.h @@ -78,6 +78,8 @@ class AdminHandler final : public Ea::AdminHandler void itemInfo(const std::string &name) const override final A_CONST; void whoDrops(const std::string &name) const override final A_CONST; + + void mobSearch(const std::string &name) const override final A_CONST; }; } // namespace TmwAthena |