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.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index c27c3c894..ae544dda2 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -44,6 +44,7 @@ MailHandler::MailHandler() :
SMSG_MAIL_READ_MAIL,
SMSG_MAIL_GET_ATTACHMENT,
SMSG_MAIL_SEND_MAIL_ACK,
+ SMSG_MAIL_NEW_MAIL,
0
};
handledMessages = _messages;
@@ -74,6 +75,10 @@ void MailHandler::handleMessage(Net::MessageIn &msg)
processSendMailAck(msg);
break;
+ case SMSG_MAIL_NEW_MAIL:
+ processNewMail(msg);
+ break;
+
default:
break;
}
@@ -154,6 +159,15 @@ void MailHandler::processSendMailAck(Net::MessageIn &msg)
msg.readUInt8("fail flag");
}
+void MailHandler::processNewMail(Net::MessageIn &msg)
+{
+ UNIMPLIMENTEDPACKET;
+
+ msg.readInt32("message id");
+ msg.readString(40, "title");
+ msg.readString(24, "sender name");
+}
+
void MailHandler::refresh()
{
createOutPacket(CMSG_MAIL_REFRESH_INBOX);