summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/mailhandler.cpp7
-rw-r--r--src/net/eathena/mailhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
3 files changed, 10 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index ee8adee14..006c5e9a2 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -97,4 +97,11 @@ void MailHandler::deleteMessage(const int msgId)
outMsg.writeInt32(msgId, "message id");
}
+void MailHandler::returnMessage(const int msgId)
+{
+ MessageOut outMsg(CMSG_MAIL_RETURN_MESSAGE);
+ outMsg.writeInt32(msgId, "message id");
+ outMsg.writeString("", 24, "unused");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/mailhandler.h b/src/net/eathena/mailhandler.h
index 8f93de4ef..a90f3cbea 100644
--- a/src/net/eathena/mailhandler.h
+++ b/src/net/eathena/mailhandler.h
@@ -46,6 +46,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler
void deleteMessage(const int msgId) override final;
+ void returnMessage(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 ee8a30639..1196988aa 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -370,6 +370,7 @@
#define CMSG_MAIL_READ_MESSAGE 0x0241
#define CMSG_MAIL_GET_ATTACH 0x0244
#define CMSG_MAIL_DELETE_MESSAGE 0x0243
+#define CMSG_MAIL_RETURN_MESSAGE 0x0273
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb