summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-11 18:31:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-11 18:31:02 +0300
commitffac5076dcc94ee88ce68d351de071ab8f830a77 (patch)
tree1f5c3b8ddf9ba1056521d19d1b4b7c0214f9daf0 /src/net/eathena
parent64d47f267be567cf259de29982acfed7eb76111e (diff)
downloadmanaverse-ffac5076dcc94ee88ce68d351de071ab8f830a77.tar.gz
manaverse-ffac5076dcc94ee88ce68d351de071ab8f830a77.tar.bz2
manaverse-ffac5076dcc94ee88ce68d351de071ab8f830a77.tar.xz
manaverse-ffac5076dcc94ee88ce68d351de071ab8f830a77.zip
eathena: add packet CMSG_ADMIN_ID_TO_LOGIN 0x01df.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/adminhandler.cpp9
-rw-r--r--src/net/eathena/adminhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 12 insertions, 0 deletions
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