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.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp
index 4797eaf82..8d1df482b 100644
--- a/src/net/eathena/mail2handler.cpp
+++ b/src/net/eathena/mail2handler.cpp
@@ -226,4 +226,14 @@ void Mail2Handler::closeMailBox() const
createOutPacket(CMSG_MAIL2_CLOSE_MAILBOX);
}
+void Mail2Handler::cancelWriteMail() const
+{
+ if (packetVersion < 20140326 ||
+ serverVersion < 19)
+ {
+ return;
+ }
+ createOutPacket(CMSG_MAIL2_CANCEL_WRITE_MAIL);
+}
+
} // namespace EAthena