summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/eathena/mailhandler.cpp5
-rw-r--r--src/net/eathena/mailhandler.h2
-rw-r--r--src/net/eathena/protocol.h2
-rw-r--r--src/net/mailhandler.h2
-rw-r--r--src/net/tmwa/mailhandler.cpp4
-rw-r--r--src/net/tmwa/mailhandler.h2
6 files changed, 17 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
diff --git a/src/net/mailhandler.h b/src/net/mailhandler.h
index 2f18edf7b..d7a646c36 100644
--- a/src/net/mailhandler.h
+++ b/src/net/mailhandler.h
@@ -31,6 +31,8 @@ class MailHandler notfinal
public:
virtual ~MailHandler()
{ }
+
+ virtual void refresh() = 0;
};
} // namespace Net
diff --git a/src/net/tmwa/mailhandler.cpp b/src/net/tmwa/mailhandler.cpp
index b018a0ce1..14d993390 100644
--- a/src/net/tmwa/mailhandler.cpp
+++ b/src/net/tmwa/mailhandler.cpp
@@ -42,4 +42,8 @@ void MailHandler::handleMessage(Net::MessageIn &msg A_UNUSED)
{
}
+void MailHandler::refresh()
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/mailhandler.h b/src/net/tmwa/mailhandler.h
index 2336dac1b..4962cb029 100644
--- a/src/net/tmwa/mailhandler.h
+++ b/src/net/tmwa/mailhandler.h
@@ -36,6 +36,8 @@ class MailHandler final : public MessageHandler, public Net::MailHandler
A_DELETE_COPY(MailHandler)
void handleMessage(Net::MessageIn &msg) override final;
+
+ void refresh() override final;
};
} // namespace TmwAthena