diff options
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-rw-r--r-- | src/net/eathena/mailhandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp index e1da3ca6b..d0d361170 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -42,6 +42,7 @@ MailHandler::MailHandler() : SMSG_MAIL_OPEN_WINDOW, SMSG_MAIL_MAILS_LIST, SMSG_MAIL_READ_MAIL, + SMSG_MAIL_GET_ATTACHMENT, 0 }; handledMessages = _messages; @@ -64,6 +65,10 @@ void MailHandler::handleMessage(Net::MessageIn &msg) processReadMail(msg); break; + case SMSG_MAIL_GET_ATTACHMENT: + processGetAttachment(msg); + break; + default: break; } @@ -130,6 +135,13 @@ void MailHandler::processReadMail(Net::MessageIn &msg) msg.readString(sz, "message"); } +void MailHandler::processGetAttachment(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readUInt8("flag"); +} + void MailHandler::refresh() { createOutPacket(CMSG_MAIL_REFRESH_INBOX); |