From dad1dff300a8a65e9b74ef0c5568279dded8e45f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 15 Sep 2014 12:03:27 +0300 Subject: eathena: add packet CMSG_MAIL_DELETE_MESSAGE 0x0243. --- src/net/eathena/mailhandler.cpp | 6 ++++++ src/net/eathena/mailhandler.h | 2 ++ src/net/eathena/protocol.h | 1 + src/net/mailhandler.h | 2 ++ src/net/tmwa/mailhandler.cpp | 4 ++++ src/net/tmwa/mailhandler.h | 2 ++ 6 files changed, 17 insertions(+) (limited to 'src/net') diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp index 264da8a21..ee8adee14 100644 --- a/src/net/eathena/mailhandler.cpp +++ b/src/net/eathena/mailhandler.cpp @@ -91,4 +91,10 @@ void MailHandler::getAttach(const int msgId) outMsg.writeInt32(msgId, "message id"); } +void MailHandler::deleteMessage(const int msgId) +{ + MessageOut outMsg(CMSG_MAIL_DELETE_MESSAGE); + outMsg.writeInt32(msgId, "message id"); +} + } // namespace EAthena diff --git a/src/net/eathena/mailhandler.h b/src/net/eathena/mailhandler.h index 2c0d0b0cc..8f93de4ef 100644 --- a/src/net/eathena/mailhandler.h +++ b/src/net/eathena/mailhandler.h @@ -44,6 +44,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler void getAttach(const int msgId) override final; + void deleteMessage(const int msgId) override final; + protected: void processMailOpen(Net::MessageIn &msg) const; }; diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 1cf12d141..ee8a30639 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -369,6 +369,7 @@ #define CMSG_MAIL_REFRESH_INBOX 0x023f #define CMSG_MAIL_READ_MESSAGE 0x0241 #define CMSG_MAIL_GET_ATTACH 0x0244 +#define CMSG_MAIL_DELETE_MESSAGE 0x0243 #define SMSG_SOLVE_CHAR_NAME 0x0194 #define SMSG_SKILL_CASTING 0x07fb diff --git a/src/net/mailhandler.h b/src/net/mailhandler.h index b72e6e8b9..9c67acf1c 100644 --- a/src/net/mailhandler.h +++ b/src/net/mailhandler.h @@ -37,6 +37,8 @@ class MailHandler notfinal virtual void readMessage(const int msgId) = 0; virtual void getAttach(const int msgId) = 0; + + virtual void deleteMessage(const int msgId) = 0; }; } // namespace Net diff --git a/src/net/tmwa/mailhandler.cpp b/src/net/tmwa/mailhandler.cpp index 5bc1836e1..8483c46c1 100644 --- a/src/net/tmwa/mailhandler.cpp +++ b/src/net/tmwa/mailhandler.cpp @@ -54,4 +54,8 @@ void MailHandler::getAttach(const int msgId A_UNUSED) { } +void MailHandler::deleteMessage(const int msgId A_UNUSED) +{ +} + } // namespace TmwAthena diff --git a/src/net/tmwa/mailhandler.h b/src/net/tmwa/mailhandler.h index f643c0299..c5111548d 100644 --- a/src/net/tmwa/mailhandler.h +++ b/src/net/tmwa/mailhandler.h @@ -42,6 +42,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler void readMessage(const int msgId) override final; void getAttach(const int msgId) override final; + + void deleteMessage(const int msgId) override final; }; } // namespace TmwAthena -- cgit v1.2.3-70-g09d2