summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-15 12:10:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-15 12:10:39 +0300
commit24067ea389a847c4d68f175d0765701110b2647e (patch)
tree8c2fb2d3476d2fc1d1eac2f4f5bcafe099283817 /src/net/eathena
parentdad1dff300a8a65e9b74ef0c5568279dded8e45f (diff)
downloadmanaplus-24067ea389a847c4d68f175d0765701110b2647e.tar.gz
manaplus-24067ea389a847c4d68f175d0765701110b2647e.tar.bz2
manaplus-24067ea389a847c4d68f175d0765701110b2647e.tar.xz
manaplus-24067ea389a847c4d68f175d0765701110b2647e.zip
eathena: add packet CMSG_MAIL_RETURN_MESSAGE 0x0273.
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