summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-28 14:19:18 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-29 14:10:28 +0300
commit13920702c8a5e5b093d9a3ef5a5e8b254931915b (patch)
tree4b6923e9498e0b61567343a20585b1cb7379a99d /src/net
parentd90b88aae13baf16083e58896a81826b2679cd6f (diff)
downloadmanaplus-13920702c8a5e5b093d9a3ef5a5e8b254931915b.tar.gz
manaplus-13920702c8a5e5b093d9a3ef5a5e8b254931915b.tar.bz2
manaplus-13920702c8a5e5b093d9a3ef5a5e8b254931915b.tar.xz
manaplus-13920702c8a5e5b093d9a3ef5a5e8b254931915b.zip
eathena: implimente packet SMSG_MAIL_SET_ATTACHMENT_ACK.
Diffstat (limited to 'src/net')
-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)