summaryrefslogtreecommitdiff
path: root/src/net/eathena/mailhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-12 16:51:00 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-12 16:51:00 +0300
commitca54c8874b631b392366f98731704db6177b14a6 (patch)
tree2e1ca02a81f695fd98e0bd5f64dc7c3c55ec0aa2 /src/net/eathena/mailhandler.cpp
parent3b77e87f120b096510f5c6af721563683057b101 (diff)
downloadplus-ca54c8874b631b392366f98731704db6177b14a6.tar.gz
plus-ca54c8874b631b392366f98731704db6177b14a6.tar.bz2
plus-ca54c8874b631b392366f98731704db6177b14a6.tar.xz
plus-ca54c8874b631b392366f98731704db6177b14a6.zip
eathena: add partial support for packet SMSG_MAIL_GET_ATTACHMENT 0x0245.
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-rw-r--r--src/net/eathena/mailhandler.cpp12
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);