diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 22:22:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 22:22:08 +0300 |
commit | 499d2fd952251bc1cb2156cecd965d0c07c9a98f (patch) | |
tree | 5dda1e4cc50e06aa144d06c6b5fd56d968dfe483 /src/net/eathena/mail2handler.cpp | |
parent | 1305ef0f6465f7053019a4b89176e6837f5ada7f (diff) | |
download | manaplus-499d2fd952251bc1cb2156cecd965d0c07c9a98f.tar.gz manaplus-499d2fd952251bc1cb2156cecd965d0c07c9a98f.tar.bz2 manaplus-499d2fd952251bc1cb2156cecd965d0c07c9a98f.tar.xz manaplus-499d2fd952251bc1cb2156cecd965d0c07c9a98f.zip |
Add packet CMSG_MAIL2_CANCEL_WRITE_MAIL 0x0a03.
Diffstat (limited to 'src/net/eathena/mail2handler.cpp')
-rw-r--r-- | src/net/eathena/mail2handler.cpp | 10 |
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 |