diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-10 19:26:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-10 19:26:08 +0300 |
commit | cb77d9a3581105efadcedabcd7ad266bfdac0f62 (patch) | |
tree | 938536a8056f653ac5ae016a454d2ef30068acaa /src/net/eathena/chathandler.cpp | |
parent | 8b7e52b9b44797ab704ec8e2b384ef10f8c912be (diff) | |
download | ManaVerse-cb77d9a3581105efadcedabcd7ad266bfdac0f62.tar.gz ManaVerse-cb77d9a3581105efadcedabcd7ad266bfdac0f62.tar.bz2 ManaVerse-cb77d9a3581105efadcedabcd7ad266bfdac0f62.tar.xz ManaVerse-cb77d9a3581105efadcedabcd7ad266bfdac0f62.zip |
eathena: add partial support for packet SMSG_IGNORE_NICK_ACK 0x00d1.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
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); |