summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-15 11:38:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-15 11:38:09 +0300
commit017cf6a085d9fc8ff99776ecdc8e4a0e91022c87 (patch)
tree63f7ef777c67b3abe3a4bcb43e0e3ab1cdf74de7 /src/net/eathena
parent4aebda1ff020b2fcbf8aaaeea96188dedcae030b (diff)
downloadplus-017cf6a085d9fc8ff99776ecdc8e4a0e91022c87.tar.gz
plus-017cf6a085d9fc8ff99776ecdc8e4a0e91022c87.tar.bz2
plus-017cf6a085d9fc8ff99776ecdc8e4a0e91022c87.tar.xz
plus-017cf6a085d9fc8ff99776ecdc8e4a0e91022c87.zip
eathena: add packet CMSG_MAIL_REFRESH_INBOX 0x023f.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/mailhandler.cpp5
-rw-r--r--src/net/eathena/mailhandler.h2
-rw-r--r--src/net/eathena/protocol.h2
3 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/mailhandler.cpp b/src/net/eathena/mailhandler.cpp
index 4a28061a3..522484dfa 100644
--- a/src/net/eathena/mailhandler.cpp
+++ b/src/net/eathena/mailhandler.cpp
@@ -74,4 +74,9 @@ void MailHandler::processMailOpen(Net::MessageIn &msg) const
}
}
+void MailHandler::refresh()
+{
+ MessageOut outMsg(CMSG_MAIL_REFRESH_INBOX);
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/mailhandler.h b/src/net/eathena/mailhandler.h
index ec3ed3e9e..42bd11307 100644
--- a/src/net/eathena/mailhandler.h
+++ b/src/net/eathena/mailhandler.h
@@ -38,6 +38,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler
void handleMessage(Net::MessageIn &msg) override final;
+ void refresh() override final;
+
protected:
void processMailOpen(Net::MessageIn &msg) const;
};
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index 532549a8c..bba239726 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -366,6 +366,8 @@
#define CMSG_PVP_INFO 0x020f
#define CMSG_PLAYER_AUTO_REVIVE 0x0292
+#define CMSG_MAIL_REFRESH_INBOX 0x023f
+
#define SMSG_SOLVE_CHAR_NAME 0x0194
#define SMSG_SKILL_CASTING 0x07fb
#define SMSG_SKILL_CAST_CANCEL 0x01b9