diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 11 | ||||
-rw-r--r-- | src/net/eathena/chathandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 353d36856..e2aa51ece 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -79,6 +79,7 @@ ChatHandler::ChatHandler() : SMSG_IGNORE_NICK_ACK, SMSG_CHAT_CREATE_ACK, SMSG_CHAT_DESTROY, + SMSG_CHAT_JOIN_FAILED, 0 }; handledMessages = _messages; @@ -171,6 +172,10 @@ void ChatHandler::handleMessage(Net::MessageIn &msg) processChatDestroy(msg); break; + case SMSG_CHAT_JOIN_FAILED: + processChatJoinFailed(msg); + break; + default: break; } @@ -793,4 +798,10 @@ void ChatHandler::processChatDestroy(Net::MessageIn &msg) msg.readInt32("chat id"); } +void ChatHandler::processChatJoinFailed(Net::MessageIn &msg) +{ + UNIMPLIMENTEDPACKET; + msg.readUInt8("flag"); +} + } // namespace EAthena diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h index dff2c1cda..379f2ba15 100644 --- a/src/net/eathena/chathandler.h +++ b/src/net/eathena/chathandler.h @@ -131,6 +131,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler static void processChatCreateAck(Net::MessageIn &msg); static void processChatDestroy(Net::MessageIn &msg); + + static void processChatJoinFailed(Net::MessageIn &msg); }; } // namespace EAthena diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index ab9de464a..77a27be38 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -261,6 +261,7 @@ #define SMSG_CHAT_CREATE_ACK 0x00d6 #define SMSG_CHAT_DISPLAY 0x00d7 #define SMSG_CHAT_DESTROY 0x00d8 +#define SMSG_CHAT_JOIN_FAILED 0x00da #define SMSG_CHAT_JOIN_ACK 0x00db #define SMSG_CHAT_LEAVE 0x00dd #define SMSG_CHAT_JOIN_CHANNEL 0x0b08 |