summaryrefslogtreecommitdiff
path: root/src/net/eathena/mailhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/mailhandler.cpp')
-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)