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 | |
parent | 8b7e52b9b44797ab704ec8e2b384ef10f8c912be (diff) | |
download | mv-cb77d9a3581105efadcedabcd7ad266bfdac0f62.tar.gz mv-cb77d9a3581105efadcedabcd7ad266bfdac0f62.tar.bz2 mv-cb77d9a3581105efadcedabcd7ad266bfdac0f62.tar.xz mv-cb77d9a3581105efadcedabcd7ad266bfdac0f62.zip |
eathena: add partial support for packet SMSG_IGNORE_NICK_ACK 0x00d1.
-rw-r--r-- | src/net/eathena/chathandler.cpp | 14 | ||||
-rw-r--r-- | src/net/eathena/chathandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 16 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); 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 |