summaryrefslogtreecommitdiff
path: root/src/net/eathena/mail2handler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-11 21:58:05 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-11 21:58:05 +0300
commit1305ef0f6465f7053019a4b89176e6837f5ada7f (patch)
tree873b71c531bc4331c38cee73144d37360942209f /src/net/eathena/mail2handler.cpp
parent0d3db3288d4b626cbcfb3ee4a11f8d0ec760ae25 (diff)
downloadmv-1305ef0f6465f7053019a4b89176e6837f5ada7f.tar.gz
mv-1305ef0f6465f7053019a4b89176e6837f5ada7f.tar.bz2
mv-1305ef0f6465f7053019a4b89176e6837f5ada7f.tar.xz
mv-1305ef0f6465f7053019a4b89176e6837f5ada7f.zip
Add packet CMSG_MAIL2_CLOSE_MAILBOX 0x09e9.
Diffstat (limited to 'src/net/eathena/mail2handler.cpp')
-rw-r--r--src/net/eathena/mail2handler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp
index b4b6de984..4797eaf82 100644
--- a/src/net/eathena/mail2handler.cpp
+++ b/src/net/eathena/mail2handler.cpp
@@ -216,4 +216,14 @@ void Mail2Handler::openMailBox(const int openType) const
outMsg.writeInt64(0, "mail id");
}
+void Mail2Handler::closeMailBox() const
+{
+ if (packetVersion < 20131211 ||
+ serverVersion < 19)
+ {
+ return;
+ }
+ createOutPacket(CMSG_MAIL2_CLOSE_MAILBOX);
+}
+
} // namespace EAthena