From 3c5824865fdd3601f0491ab8f90b47c49230695b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 10 Mar 2015 23:23:54 +0300 Subject: eathena: add partial support for packet SMSG_MANNER_MESSAGE 0x014a. --- src/net/eathena/chathandler.cpp | 11 +++++++++++ src/net/eathena/chathandler.h | 2 ++ src/net/eathena/protocol.h | 2 ++ 3 files changed, 15 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 9b47a7279..ea56d8214 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -86,6 +86,7 @@ ChatHandler::ChatHandler() : SMSG_CHAT_ADD_MEMBER, SMSG_CHAT_SETTINGS, SMSG_CHAT_ROLE_CHANGE, + SMSG_MANNER_MESSAGE, 0 }; handledMessages = _messages; @@ -206,6 +207,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg) processChatRoleChange(msg); break; + case SMSG_MANNER_MESSAGE: + processMannerMessage(msg); + break; + default: break; } @@ -876,4 +881,10 @@ void ChatHandler::processMVPNoItem(Net::MessageIn &msg) { } +void ChatHandler::processMannerMessage(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readInt32("type"); +} + } // namespace EAthena diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h index 92b4f73bd..bf2048a40 100644 --- a/src/net/eathena/chathandler.h +++ b/src/net/eathena/chathandler.h @@ -145,6 +145,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler static void processMVPExp(Net::MessageIn &msg); static void processMVPNoItem(Net::MessageIn &msg); + + static void processMannerMessage(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index bb1b55fe9..0e1fc2cd7 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -362,6 +362,8 @@ #define SMSG_ONLINE_LIST 0x0b10 +#define SMSG_MANNER_MESSAGE 0x014a + /********************************** * Packets from client to server * **********************************/ -- cgit v1.2.3-70-g09d2