diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-11 20:31:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-11 20:31:27 +0300 |
commit | 66d940df678f16b5f53f58f80837826e24031eb1 (patch) | |
tree | 5201aa351f4760ff1e5d171c0ea4fa2b4d84a7c1 /src/net/eathena/mail2handler.cpp | |
parent | abb284e237e02cd78a975a703e349b799f7f446d (diff) | |
download | manaverse-66d940df678f16b5f53f58f80837826e24031eb1.tar.gz manaverse-66d940df678f16b5f53f58f80837826e24031eb1.tar.bz2 manaverse-66d940df678f16b5f53f58f80837826e24031eb1.tar.xz manaverse-66d940df678f16b5f53f58f80837826e24031eb1.zip |
Add packet CMSG_MAIL2_DELETE_MAIL 0x09f5.
Diffstat (limited to 'src/net/eathena/mail2handler.cpp')
-rw-r--r-- | src/net/eathena/mail2handler.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/net/eathena/mail2handler.cpp b/src/net/eathena/mail2handler.cpp index 09e8df11c..3ee9f193c 100644 --- a/src/net/eathena/mail2handler.cpp +++ b/src/net/eathena/mail2handler.cpp @@ -152,4 +152,17 @@ void Mail2Handler::readMail(const int openType, outMsg.writeInt64(mailId, "mail id"); } +void Mail2Handler::deleteMail(const int openType, + const int64_t mailId) const +{ + if (packetVersion < 20131218 || + serverVersion < 19) + { + return; + } + createOutPacket(CMSG_MAIL2_DELETE_MAIL); + outMsg.writeInt8(openType, "open type"); + outMsg.writeInt64(mailId, "mail id"); +} + } // namespace EAthena |