From 52a130d4975dcd05a283fb46ba68af094ff91c4e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 15 Sep 2014 11:57:53 +0300 Subject: eathena: add packet CMSG_MAIL_GET_ATTACH 0x0244. --- src/net/eathena/mailhandler.cpp | 6 ++++++ src/net/eathena/mailhandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 9 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp index 1b19a4644..264da8a21 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -85,4 +85,10 @@ void MailHandler::readMessage(const int msgId) outMsg.writeInt32(msgId, "message id"); } +void MailHandler::getAttach(const int msgId) +{ + MessageOut outMsg(CMSG_MAIL_GET_ATTACH); + outMsg.writeInt32(msgId, "message id"); +} + } // namespace EAthena diff --git a/src/net/eathena/mailhandler.h b/src/net/eathena/mailhandler.h index 277b534c2..2c0d0b0cc 100644 --- a/src/net/eathena/mailhandler.h +++ b/src/net/eathena/mailhandler.h @@ -42,6 +42,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler void readMessage(const int msgId) override final; + void getAttach(const int msgId) override final; + protected: void processMailOpen(Net::MessageIn &msg) const; }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index e7257f4c9..1cf12d141 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -368,6 +368,7 @@ #define CMSG_MAIL_REFRESH_INBOX 0x023f #define CMSG_MAIL_READ_MESSAGE 0x0241 +#define CMSG_MAIL_GET_ATTACH 0x0244 #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb -- cgit v1.2.3-70-g09d2