diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-15 10:56:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-15 11:08:52 +0300 |
commit | 2092efd689b7a0881bc9c7b3038e5f2e53a1ba21 (patch) | |
tree | b19507096c3fffa8cdc99e57c897d4e6e1f9a014 /src/net/eathena/adminhandler.cpp | |
parent | fcd38e8269205f062e27ea42d5107e5700023ff3 (diff) | |
download | plus-2092efd689b7a0881bc9c7b3038e5f2e53a1ba21.tar.gz plus-2092efd689b7a0881bc9c7b3038e5f2e53a1ba21.tar.bz2 plus-2092efd689b7a0881bc9c7b3038e5f2e53a1ba21.tar.xz plus-2092efd689b7a0881bc9c7b3038e5f2e53a1ba21.zip |
eathena: add packet CMSG_ADMIN_REQUEST_STATS 0x0213.
Diffstat (limited to 'src/net/eathena/adminhandler.cpp')
-rw-r--r-- | src/net/eathena/adminhandler.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index 7ef2dc645..2883ff524 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -40,7 +40,8 @@ namespace EAthena AdminHandler::AdminHandler() : MessageHandler(), - Ea::AdminHandler() + Ea::AdminHandler(), + mStatsName() { static const uint16_t _messages[] = { @@ -198,4 +199,11 @@ void AdminHandler::processSetTileType(Net::MessageIn &msg) msg.readString(16, "map name"); } +void AdminHandler::requestStats(const std::string &name) +{ + mStatsName = name; + MessageOut outMsg(CMSG_ADMIN_REQUEST_STATS); + outMsg.writeString(name, 24); +} + } // namespace EAthena |