summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-11 23:00:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-11 23:00:00 +0300
commitf96c3bf4bdccbf983b21b103d3ba748153e81f1c (patch)
tree7c5e216ee6ed5e2217577eccad38b025d8090930 /src
parente597401af5d0005f3f6039cc0e76d8ecfaae66ef (diff)
downloadmv-f96c3bf4bdccbf983b21b103d3ba748153e81f1c.tar.gz
mv-f96c3bf4bdccbf983b21b103d3ba748153e81f1c.tar.bz2
mv-f96c3bf4bdccbf983b21b103d3ba748153e81f1c.tar.xz
mv-f96c3bf4bdccbf983b21b103d3ba748153e81f1c.zip
eathena: add packet CMSG_REQUEST_IGNORE_LIST 0x00d3.
Diffstat (limited to 'src')
-rw-r--r--src/net/chathandler.h2
-rw-r--r--src/net/eathena/chathandler.cpp5
-rw-r--r--src/net/eathena/chathandler.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/tmwa/chathandler.cpp4
-rw-r--r--src/net/tmwa/chathandler.h2
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);