From be214fb83a0207e6675f08d299cd30d575371794 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Sep 2014 21:22:03 +0300 Subject: add packet CMSG_IGNORE_NICK 0x00cf. --- src/net/tmwa/chathandler.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/net/tmwa/chathandler.cpp') diff --git a/src/net/tmwa/chathandler.cpp b/src/net/tmwa/chathandler.cpp index 197661d08..1635cdbc1 100644 --- a/src/net/tmwa/chathandler.cpp +++ b/src/net/tmwa/chathandler.cpp @@ -246,6 +246,20 @@ void ChatHandler::unIgnoreAll() const outMsg.writeInt8(1, "flag"); } +void ChatHandler::ignore(const std::string &nick) const +{ + MessageOut outMsg(CMSG_IGNORE_NICK); + outMsg.writeString(nick, 24, "nick"); + outMsg.writeInt8(0, "flag"); +} + +void ChatHandler::unIgnore(const std::string &nick) const +{ + MessageOut outMsg(CMSG_IGNORE_NICK); + outMsg.writeString(nick, 24, "nick"); + outMsg.writeInt8(1, "flag"); +} + void ChatHandler::createChatRoom(const std::string &title A_UNUSED, const std::string &password A_UNUSED, const int limit A_UNUSED, -- cgit v1.2.3-60-g2f50