summaryrefslogtreecommitdiff
path: root/src/net/eathena/mail2handler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 21:36:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 21:36:42 +0300
commitef52dc33fb6c9f055bc947998951520fc3deaf18 (patch)
treeeb8d374460c3acb27972e6184e84abe554925e55 /src/net/eathena/mail2handler.cpp
parent3be81954bafe8cf4b883da939d4185c8aa6f799e (diff)
downloadmanaplus-ef52dc33fb6c9f055bc947998951520fc3deaf18.tar.gz
manaplus-ef52dc33fb6c9f055bc947998951520fc3deaf18.tar.bz2
manaplus-ef52dc33fb6c9f055bc947998951520fc3deaf18.tar.xz
manaplus-ef52dc33fb6c9f055bc947998951520fc3deaf18.zip
Add packet CMSG_MAIL2_REFRESH_MAIL_LIST 0x09ef.
Diffstat (limited to 'src/net/eathena/mail2handler.cpp')
-rw-r--r--src/net/eathena/mail2handler.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp
index 97f4f0bb2..54ad503e7 100644
--- a/src/net/eathena/mail2handler.cpp
+++ b/src/net/eathena/mail2handler.cpp
@@ -191,4 +191,17 @@ void Mail2Handler::requestItems(const int openType,
outMsg.writeInt8(openType, "open type");
}
+void Mail2Handler::refreshMailList(const int openType,
+ const int64_t mailId) const
+{
+ if (packetVersion < 20131218 ||
+ serverVersion < 19)
+ {
+ return;
+ }
+ createOutPacket(CMSG_MAIL2_REFRESH_MAIL_LIST);
+ outMsg.writeInt8(openType, "open type");
+ outMsg.writeInt64(mailId, "mail id");
+}
+
} // namespace EAthena