From ffac5076dcc94ee88ce68d351de071ab8f830a77 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Sep 2014 18:31:02 +0300 Subject: eathena: add packet CMSG_ADMIN_ID_TO_LOGIN 0x01df. --- src/net/eathena/adminhandler.cpp | 9 +++++++++ src/net/eathena/adminhandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 12 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/adminhandler.cpp b/src/net/eathena/adminhandler.cpp index d99af7d1e..0d677a413 100644 --- a/src/net/eathena/adminhandler.cpp +++ b/src/net/eathena/adminhandler.cpp @@ -153,4 +153,13 @@ void AdminHandler::muteName(const std::string &name) const outMsg.writeString(name, 24, "name"); } +void AdminHandler::requestLogin(const Being *const being) const +{ + if (!being) + return; + + MessageOut outMsg(CMSG_ADMIN_ID_TO_LOGIN); + outMsg.writeInt32(being->getId(), "account id"); +} + } // namespace EAthena diff --git a/src/net/eathena/adminhandler.h b/src/net/eathena/adminhandler.h index 819c02ad8..59dec3cdf 100644 --- a/src/net/eathena/adminhandler.h +++ b/src/net/eathena/adminhandler.h @@ -65,6 +65,8 @@ class AdminHandler final : public MessageHandler, public Ea::AdminHandler const int limit) const override final; void muteName(const std::string &name) const override final; + + void requestLogin(const Being *const being) const override final; }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index fcfced256..d93d3698e 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -307,6 +307,7 @@ #define CMSG_ADMIN_RECALL 0x01bd #define CMSG_ADMIN_MUTE 0x0149 #define CMSG_ADMIN_MUTE_NAME 0x0212 +#define CMSG_ADMIN_ID_TO_LOGIN 0x01df #define CMSG_GUILD_CHECK_MASTER 0x014d #define CMSG_GUILD_REQUEST_INFO 0x014f -- cgit v1.2.3-70-g09d2