summaryrefslogtreecommitdiff
path: root/src/net/eathena/mailhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-12 17:33:09 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-12 17:33:09 +0300
commit16c4b0ef4fb76431563f09b147662b81788fa6c6 (patch)
tree9283199c22dc0c22b016503af281012be15f1011 /src/net/eathena/mailhandler.cpp
parent0fec797c95aca9d1c575daf4e9a3359fec10896d (diff)
downloadmanaverse-16c4b0ef4fb76431563f09b147662b81788fa6c6.tar.gz
manaverse-16c4b0ef4fb76431563f09b147662b81788fa6c6.tar.bz2
manaverse-16c4b0ef4fb76431563f09b147662b81788fa6c6.tar.xz
manaverse-16c4b0ef4fb76431563f09b147662b81788fa6c6.zip
eathena: add partial support for packet SMSG_MAIL_DELETE_MAIL_ACK 0x0257.
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-rw-r--r--src/net/eathena/mailhandler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index 13991ad22..44234cb04 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -46,6 +46,7 @@ MailHandler::MailHandler() :
SMSG_MAIL_SEND_MAIL_ACK,
SMSG_MAIL_NEW_MAIL,
SMSG_MAIL_SET_ATTACHMENT_ACK,
+ SMSG_MAIL_DELETE_MAIL_ACK,
0
};
handledMessages = _messages;
@@ -84,6 +85,10 @@ void MailHandler::handleMessage(Net::MessageIn &msg)
processSetAttachmentAck(msg);
break;
+ case SMSG_MAIL_DELETE_MAIL_ACK:
+ processDeleteAck(msg);
+ break;
+
default:
break;
}
@@ -181,6 +186,14 @@ void MailHandler::processSetAttachmentAck(Net::MessageIn &msg)
msg.readUInt8("flag");
}
+void MailHandler::processDeleteAck(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+
+ msg.readInt32("message id");
+ msg.readInt16("fail flag");
+}
+
void MailHandler::refresh()
{
createOutPacket(CMSG_MAIL_REFRESH_INBOX);