summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-15 12:03:27 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-15 12:03:27 +0300
commitdad1dff300a8a65e9b74ef0c5568279dded8e45f (patch)
tree718a96436b64d0455236ef0da6a04bad01232c60 /src/net/eathena
parent52a130d4975dcd05a283fb46ba68af094ff91c4e (diff)
downloadplus-dad1dff300a8a65e9b74ef0c5568279dded8e45f.tar.gz
plus-dad1dff300a8a65e9b74ef0c5568279dded8e45f.tar.bz2
plus-dad1dff300a8a65e9b74ef0c5568279dded8e45f.tar.xz
plus-dad1dff300a8a65e9b74ef0c5568279dded8e45f.zip
eathena: add packet CMSG_MAIL_DELETE_MESSAGE 0x0243.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/mailhandler.cpp6
-rw-r--r--src/net/eathena/mailhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 9 insertions, 0 deletions
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