From 603d7aa8dd15738bbf72d83bdb0d6c4caedb62c8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 11 Sep 2014 23:08:36 +0300 Subject: eathena: add partial support for packet SMSG_CHAT_IGNORE_LIST 0x00d4. --- src/net/eathena/chathandler.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/net/eathena/chathandler.cpp') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index eaea75651..031222e3e 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -59,6 +59,7 @@ ChatHandler::ChatHandler() : SMSG_MVP, // MVP SMSG_IGNORE_ALL_RESPONSE, SMSG_COLOR_MESSAGE, + SMSG_CHAT_IGNORE_LIST, 0 }; handledMessages = _messages; @@ -101,6 +102,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg) processIgnoreAllResponse(msg); break; + case SMSG_CHAT_IGNORE_LIST: + processChatIgnoreList(msg); + break; + default: break; } @@ -343,4 +348,12 @@ void ChatHandler::processWhisperResponse(Net::MessageIn &msg) processWhisperResponseContinue(type); } +void ChatHandler::processChatIgnoreList(Net::MessageIn &msg) +{ + // +++ need put it in some object or window + const int count = (msg.readInt16("len") - 4) / 24; + for (int f = 0; f < count; f ++) + msg.readString(24, "nick"); +} + } // namespace EAthena -- cgit v1.2.3-60-g2f50