diff options
-rw-r--r-- | src/net/chathandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/chathandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/chathandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 | ||||
-rw-r--r-- | src/net/tmwa/chathandler.cpp | 4 | ||||
-rw-r--r-- | src/net/tmwa/chathandler.h | 2 |
6 files changed, 16 insertions, 0 deletions
diff --git a/src/net/chathandler.h b/src/net/chathandler.h index c0bef3855..8fce6313d 100644 --- a/src/net/chathandler.h +++ b/src/net/chathandler.h @@ -62,6 +62,8 @@ class ChatHandler notfinal virtual void unIgnore(const std::string &nick) const = 0; + virtual void requestIgnoreList() const = 0; + virtual void clear() = 0; virtual void createChatRoom(const std::string &title, const std::string &password, const int limit, const bool isPublic) = 0; diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 8013513a1..eaea75651 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -236,6 +236,11 @@ void ChatHandler::unIgnore(const std::string &nick) const outMsg.writeInt8(1, "flag"); } +void ChatHandler::requestIgnoreList() const +{ + MessageOut outMsg(CMSG_REQUEST_IGNORE_LIST); +} + void ChatHandler::createChatRoom(const std::string &title, const std::string &password, const int limit, diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h index 78da589ab..6e2689087 100644 --- a/src/net/eathena/chathandler.h +++ b/src/net/eathena/chathandler.h @@ -68,6 +68,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler void unIgnore(const std::string &nick) const override final; + void requestIgnoreList() const override final; + protected: void processChat(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index e5fdfc683..7fc6ea834 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -335,6 +335,7 @@ #define CMSG_SOLVE_CHAR_NAME 0x0368 #define CMSG_IGNORE_ALL 0x00d0 #define CMSG_IGNORE_NICK 0x00cf +#define CMSG_REQUEST_IGNORE_LIST 0x00d3 #define CMSG_REQUEST_RANKS 0x097c #define CMSG_SET_SHORTCUTS 0x02ba #define CMSG_NPC_COMPLETE_PROGRESS_BAR 0x02f1 diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index 1635cdbc1..61e81428d 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -260,6 +260,10 @@ void ChatHandler::unIgnore(const std::string &nick) const outMsg.writeInt8(1, "flag"); } +void ChatHandler::requestIgnoreList() const +{ +} + void ChatHandler::createChatRoom(const std::string &title A_UNUSED, const std::string &password A_UNUSED, const int limit A_UNUSED, diff --git a/src/net/tmwa/chathandler.h b/src/net/tmwa/chathandler.h index 95989835f..777052b98 100644 --- a/src/net/tmwa/chathandler.h +++ b/src/net/tmwa/chathandler.h @@ -68,6 +68,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler void unIgnore(const std::string &nick) const override final; + void requestIgnoreList() const override final; + protected: void processChat(Net::MessageIn &msg); |