diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-12 17:55:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-12 17:55:17 +0300 |
commit | 2c08eba0c8abd2eb3c09b1a916a5f6693c6ae7c0 (patch) | |
tree | 3bf8614754934ff936f5b4910ffa1e7769b3c68b /src/net/eathena/mailhandler.cpp | |
parent | dca1d63c7734846844fd3d322d1b6927cfa7d913 (diff) | |
download | plus-2c08eba0c8abd2eb3c09b1a916a5f6693c6ae7c0.tar.gz plus-2c08eba0c8abd2eb3c09b1a916a5f6693c6ae7c0.tar.bz2 plus-2c08eba0c8abd2eb3c09b1a916a5f6693c6ae7c0.tar.xz plus-2c08eba0c8abd2eb3c09b1a916a5f6693c6ae7c0.zip |
eathena: add partial support for packet SMSG_MAIL_RETURN 0x0274.
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 44234cb04..cf4a0c290 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -47,6 +47,7 @@ MailHandler::MailHandler() : SMSG_MAIL_NEW_MAIL, SMSG_MAIL_SET_ATTACHMENT_ACK, SMSG_MAIL_DELETE_MAIL_ACK, + SMSG_MAIL_RETURN, 0 }; handledMessages = _messages; @@ -89,6 +90,10 @@ void MailHandler::handleMessage(Net::MessageIn &msg) processDeleteAck(msg); break; + case SMSG_MAIL_RETURN: + processMailReturn(msg); + break; + default: break; } @@ -194,6 +199,14 @@ void MailHandler::processDeleteAck(Net::MessageIn &msg) msg.readInt16("fail flag"); } +void MailHandler::processMailReturn(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + + msg.readInt32("message id"); + msg.readInt16("fail flag"); +} + void MailHandler::refresh() { createOutPacket(CMSG_MAIL_REFRESH_INBOX); |