diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-12 17:08:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-12 17:08:09 +0300 |
commit | f5e4b8888afa9b95469903148e4df1544b755bc8 (patch) | |
tree | 6ccb56595d92f5bdfa75a4d42a497cec4b59c61c /src/net/eathena/mailhandler.cpp | |
parent | edd3c87f697c6c0c33a2291cf70016ec56c84f54 (diff) | |
download | plus-f5e4b8888afa9b95469903148e4df1544b755bc8.tar.gz plus-f5e4b8888afa9b95469903148e4df1544b755bc8.tar.bz2 plus-f5e4b8888afa9b95469903148e4df1544b755bc8.tar.xz plus-f5e4b8888afa9b95469903148e4df1544b755bc8.zip |
eathena: add partial support for packet SMSG_MAIL_NEW_MAIL 0x024a.
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-rw-r--r-- | src/net/eathena/mailhandler.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp index c27c3c894..ae544dda2 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -44,6 +44,7 @@ MailHandler::MailHandler() : SMSG_MAIL_READ_MAIL, SMSG_MAIL_GET_ATTACHMENT, SMSG_MAIL_SEND_MAIL_ACK, + SMSG_MAIL_NEW_MAIL, 0 }; handledMessages = _messages; @@ -74,6 +75,10 @@ void MailHandler::handleMessage(Net::MessageIn &msg) processSendMailAck(msg); break; + case SMSG_MAIL_NEW_MAIL: + processNewMail(msg); + break; + default: break; } @@ -154,6 +159,15 @@ void MailHandler::processSendMailAck(Net::MessageIn &msg) msg.readUInt8("fail flag"); } +void MailHandler::processNewMail(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readInt32("message id"); + msg.readString(40, "title"); + msg.readString(24, "sender name"); +} + void MailHandler::refresh() { createOutPacket(CMSG_MAIL_REFRESH_INBOX); |