summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-24 00:35:23 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-24 00:35:23 +0300
commit9208926ca3f162102c08b8e5331f5a1c38681d4f (patch)
tree05dda363ac2288c444691b889cac87a84e67d00e /src/net/eathena
parent7eabdd0b8c8281128249659c4d8e8501c10da66e (diff)
downloadmv-9208926ca3f162102c08b8e5331f5a1c38681d4f.tar.gz
mv-9208926ca3f162102c08b8e5331f5a1c38681d4f.tar.bz2
mv-9208926ca3f162102c08b8e5331f5a1c38681d4f.tar.xz
mv-9208926ca3f162102c08b8e5331f5a1c38681d4f.zip
Add gm chat command /whodrops
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/adminhandler.cpp5
-rw-r--r--src/net/eathena/adminhandler.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp
index ed328b57b..3064a9ca2 100644
--- a/src/net/eathena/adminhandler.cpp
+++ b/src/net/eathena/adminhandler.cpp
@@ -172,4 +172,9 @@ void AdminHandler::itemInfo(const std::string &name) const
chatHandler->talk("@iteminfo " + name, GENERAL_CHANNEL);
}
+void AdminHandler::whoDrops(const std::string &name) const
+{
+ chatHandler->talk("@whodrops " + name, GENERAL_CHANNEL);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h
index 51dca1b6f..e7a5a1473 100644
--- a/src/net/eathena/adminhandler.h
+++ b/src/net/eathena/adminhandler.h
@@ -75,6 +75,8 @@ class AdminHandler final : public Ea::AdminHandler
void itemInfo(const std::string &name) const override final;
+ void whoDrops(const std::string &name) const override final;
+
protected:
static std::string mStatsName;
};