summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-30 01:05:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-30 01:05:52 +0300
commit780731dbb1d104f3f91eede326fa7dce75b0d6f3 (patch)
tree22b57294249f3b28f2b49fe2bc886d8da8a305b6 /src/net/eathena
parent9dc8560a0b659a1c54e3e64ed9cf158c22631d7c (diff)
downloadplus-780731dbb1d104f3f91eede326fa7dce75b0d6f3.tar.gz
plus-780731dbb1d104f3f91eede326fa7dce75b0d6f3.tar.bz2
plus-780731dbb1d104f3f91eede326fa7dce75b0d6f3.tar.xz
plus-780731dbb1d104f3f91eede326fa7dce75b0d6f3.zip
eathena: impliment packet SMSG_MAIL_GET_ATTACHMENT.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/mailhandler.cpp18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index effaf9cf2..040828e9b 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -174,9 +174,21 @@ void MailHandler::processReadMail(Net::MessageIn &msg)
void MailHandler::processGetAttachment(Net::MessageIn &msg)
{
- UNIMPLIMENTEDPACKET;
-
- msg.readUInt8("flag");
+ switch(msg.readUInt8("flag"))
+ {
+ case 0:
+ NotifyManager::notify(NotifyTypes::MAIL_GET_ATTACH_OK);
+ break;
+ case 1:
+ NotifyManager::notify(NotifyTypes::MAIL_GET_ATTACH_ERROR);
+ break;
+ case 2:
+ NotifyManager::notify(NotifyTypes::MAIL_GET_ATTACH_TOO_MANY_ITEMS);
+ break;
+ default:
+ UNIMPLIMENTEDPACKET;
+ break;
+ }
}
void MailHandler::processSendMailAck(Net::MessageIn &msg)