summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/mailhandler.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index 5e8ae486e..bebd4b10b 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -206,10 +206,15 @@ void MailHandler::processNewMail(Net::MessageIn &msg)
void MailHandler::processSetAttachmentAck(Net::MessageIn &msg)
{
- UNIMPLIMENTEDPACKET;
-
- msg.readInt16("index");
- msg.readUInt8("flag");
+ const int index = msg.readInt16("index");
+ const int flag = msg.readUInt8("flag");
+ if (flag)
+ {
+ if (index)
+ NotifyManager::notify(NotifyTypes::MAIL_ATTACH_ITEM_ERROR);
+ else
+ NotifyManager::notify(NotifyTypes::MAIL_ATTACH_MONEY_ERROR);
+ }
}
void MailHandler::processDeleteAck(Net::MessageIn &msg)