summaryrefslogtreecommitdiff
path: root/src/net/eathena/adminhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/adminhandler.cpp')
-rw-r--r--src/net/eathena/adminhandler.cpp10
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