summaryrefslogtreecommitdiff
path: root/src/net/eathena/mail2handler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 20:05:12 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 20:05:12 +0300
commit0389a3eda12eb7f9ca3dcb8ad6b6817c41532071 (patch)
tree97294ba03cde095c39c8af223d58bf67b1f7b189 /src/net/eathena/mail2handler.cpp
parentbde03f8dc53a64ac43b84cab4cc7b7b5f6bf4f48 (diff)
downloadmanaplus-0389a3eda12eb7f9ca3dcb8ad6b6817c41532071.tar.gz
manaplus-0389a3eda12eb7f9ca3dcb8ad6b6817c41532071.tar.bz2
manaplus-0389a3eda12eb7f9ca3dcb8ad6b6817c41532071.tar.xz
manaplus-0389a3eda12eb7f9ca3dcb8ad6b6817c41532071.zip
Add packet CMSG_MAIL2_NEXT_PAGE 0x09ee.
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 ab4aace0e..fc63d5912 100644
--- a/src/net/eathena/mail2handler.cpp
+++ b/src/net/eathena/mail2handler.cpp
@@ -126,4 +126,17 @@ void Mail2Handler::sendMail(const std::string &to,
outMsg.writeString(body, bodySz, "body");
}
+void Mail2Handler::nextPage(const int openType,
+ const int64_t mailId) const
+{
+ if (packetVersion < 20131218 ||
+ serverVersion < 19)
+ {
+ return;
+ }
+ createOutPacket(CMSG_MAIL2_NEXT_PAGE);
+ outMsg.writeInt8(openType, "open type");
+ outMsg.writeInt64(mailId, "mail id");
+}
+
} // namespace EAthena