summaryrefslogtreecommitdiff
path: root/src/net/eathena/mail2handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena/mail2handler.cpp')
-rw-r--r--src/net/eathena/mail2handler.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp
index 54ad503e7..b4b6de984 100644
--- a/src/net/eathena/mail2handler.cpp
+++ b/src/net/eathena/mail2handler.cpp
@@ -204,4 +204,16 @@ void Mail2Handler::refreshMailList(const int openType,
outMsg.writeInt64(mailId, "mail id");
}
+void Mail2Handler::openMailBox(const int openType) const
+{
+ if (packetVersion < 20140212 ||
+ serverVersion < 19)
+ {
+ return;
+ }
+ createOutPacket(CMSG_MAIL2_OPEN_MAILBOX);
+ outMsg.writeInt8(openType, "open type");
+ outMsg.writeInt64(0, "mail id");
+}
+
} // namespace EAthena