summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
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 522484dfa..1b19a4644 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -79,4 +79,10 @@ void MailHandler::refresh()
MessageOut outMsg(CMSG_MAIL_REFRESH_INBOX);
}
+void MailHandler::readMessage(const int msgId)
+{
+ MessageOut outMsg(CMSG_MAIL_READ_MESSAGE);
+ outMsg.writeInt32(msgId, "message id");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/mailhandler.h b/src/net/eathena/mailhandler.h
index 42bd11307..277b534c2 100644
--- a/src/net/eathena/mailhandler.h
+++ b/src/net/eathena/mailhandler.h
@@ -40,6 +40,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler
void refresh() override final;
+ void readMessage(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 bba239726..e7257f4c9 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -367,6 +367,7 @@
#define CMSG_PLAYER_AUTO_REVIVE 0x0292
#define CMSG_MAIL_REFRESH_INBOX 0x023f
+#define CMSG_MAIL_READ_MESSAGE 0x0241
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb