From cb77d9a3581105efadcedabcd7ad266bfdac0f62 Mon Sep 17 00:00:00 2001
From: Andrei Karas <akaras@inbox.ru>
Date: Tue, 10 Mar 2015 19:26:08 +0300
Subject: eathena: add partial support for packet SMSG_IGNORE_NICK_ACK 0x00d1.

---
 src/net/eathena/chathandler.cpp | 14 +++++++++++++-
 src/net/eathena/chathandler.h   |  2 ++
 src/net/eathena/protocol.h      |  1 +
 3 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp
index 6a005fedd..85c869a87 100644
--- a/src/net/eathena/chathandler.cpp
+++ b/src/net/eathena/chathandler.cpp
@@ -65,7 +65,7 @@ ChatHandler::ChatHandler() :
         SMSG_WHISPER_RESPONSE,
         SMSG_GM_CHAT,
         SMSG_GM_CHAT2,
-        SMSG_MVP,  // MVP
+        SMSG_MVP,
         SMSG_IGNORE_ALL_RESPONSE,
         SMSG_COLOR_MESSAGE,
         SMSG_CHAT_IGNORE_LIST,
@@ -76,6 +76,7 @@ ChatHandler::ChatHandler() :
         SMSG_CHAT_JOIN_ACK,
         SMSG_CHAT_LEAVE,
         SMSG_CHAT_JOIN_CHANNEL,
+        SMSG_IGNORE_NICK_ACK,
         0
     };
     handledMessages = _messages;
@@ -156,6 +157,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg)
             processJoinChannel(msg);
             break;
 
+        case SMSG_IGNORE_NICK_ACK:
+            processIgnoreNickAck(msg);
+            break;
+
         default:
             break;
     }
@@ -297,6 +302,13 @@ void ChatHandler::unIgnore(const std::string &nick) const
     outMsg.writeInt8(1, "flag");
 }
 
+void ChatHandler::processIgnoreNickAck(Net::MessageIn &msg)
+{
+    UNIMPLIMENTEDPACKET;
+    msg.readUInt8("type");
+    msg.readUInt8("flag");
+}
+
 void ChatHandler::requestIgnoreList() const
 {
     createOutPacket(CMSG_REQUEST_IGNORE_LIST);
diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h
index 3bda55400..798524da9 100644
--- a/src/net/eathena/chathandler.h
+++ b/src/net/eathena/chathandler.h
@@ -125,6 +125,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler
                                            std::string chatMsg);
 
         static void processBeingChat(Net::MessageIn &msg);
+
+        static void processIgnoreNickAck(Net::MessageIn &msg);
 };
 
 }  // namespace EAthena
diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h
index b9e0621b1..25290b89f 100644
--- a/src/net/eathena/protocol.h
+++ b/src/net/eathena/protocol.h
@@ -132,6 +132,7 @@
 #define SMSG_BEING_RESURRECT         0x0148
 #define SMSG_BEING_STAT_UPDATE_1     0x01ab
 #define SMSG_BEING_ATTRS             0x0b0a
+#define SMSG_IGNORE_NICK_ACK         0x00d1
 
 #define SMSG_PLAYER_STATUS_CHANGE    0x0229
 #define SMSG_PLAYER_STATUS_CHANGE2   0x028a
-- 
cgit v1.2.3-70-g09d2