diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-12 17:20:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-12 17:20:10 +0300 |
commit | 0fec797c95aca9d1c575daf4e9a3359fec10896d (patch) | |
tree | 9ff619e55b2bc0a5f1e00c6866fd56a808012c23 /src/net/eathena/mailhandler.cpp | |
parent | bc0ccd9664c637d6d3fe62b3cd45b72e3a503ab3 (diff) | |
download | mv-0fec797c95aca9d1c575daf4e9a3359fec10896d.tar.gz mv-0fec797c95aca9d1c575daf4e9a3359fec10896d.tar.bz2 mv-0fec797c95aca9d1c575daf4e9a3359fec10896d.tar.xz mv-0fec797c95aca9d1c575daf4e9a3359fec10896d.zip |
eathena: add partial support for packet SMSG_MAIL_SET_ATTACHMENT_ACK 0x0255.
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-rw-r--r-- | src/net/eathena/mailhandler.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp index ae544dda2..13991ad22 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -45,6 +45,7 @@ MailHandler::MailHandler() : SMSG_MAIL_GET_ATTACHMENT, SMSG_MAIL_SEND_MAIL_ACK, SMSG_MAIL_NEW_MAIL, + SMSG_MAIL_SET_ATTACHMENT_ACK, 0 }; handledMessages = _messages; @@ -79,6 +80,10 @@ void MailHandler::handleMessage(Net::MessageIn &msg) processNewMail(msg); break; + case SMSG_MAIL_SET_ATTACHMENT_ACK: + processSetAttachmentAck(msg); + break; + default: break; } @@ -168,6 +173,14 @@ void MailHandler::processNewMail(Net::MessageIn &msg) msg.readString(24, "sender name"); } +void MailHandler::processSetAttachmentAck(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readInt16("index"); + msg.readUInt8("flag"); +} + void MailHandler::refresh() { createOutPacket(CMSG_MAIL_REFRESH_INBOX); |