From 4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 28 Mar 2015 23:01:11 +0300 Subject: eathena: add packet CMSG_LEAVE_CHAT_ROOM 0x00e3. --- src/net/eathena/chathandler.cpp | 5 +++++ src/net/eathena/chathandler.h | 2 ++ src/net/eathena/protocol.h | 1 + 3 files changed, 8 insertions(+) (limited to 'src/net/eathena') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index fad5f2c1b..78e909d62 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -939,4 +939,9 @@ void ChatHandler::processScriptMessage(Net::MessageIn &msg) msg.readString(sz, "message"); } +void ChatHandler::leaveChatRoom() const +{ + createOutPacket(CMSG_LEAVE_CHAT_ROOM); +} + } // namespace EAthena diff --git a/src/net/eathena/chathandler.h b/src/net/eathena/chathandler.h index 37ad3ad5e..174c70bfa 100644 --- a/src/net/eathena/chathandler.h +++ b/src/net/eathena/chathandler.h @@ -87,6 +87,8 @@ class ChatHandler final : public MessageHandler, public Ea::ChatHandler void talkPet(const std::string &restrict text, const std::string &restrict channel) const override final; + void leaveChatRoom() const override final; + protected: static std::string extractChannelFromMessage(std::string &chatMsg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 4e0311e29..884cfc382 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -493,6 +493,7 @@ #define CMSG_BATTLE_CHAT_MESSAGE 0x02db #define CMSG_CREAYE_CHAT_ROOM 0x00d5 +#define CMSG_LEAVE_CHAT_ROOM 0x00e3 #define CMSG_SKILL_LEVELUP_REQUEST 0x0112 #define CMSG_STAT_UPDATE_REQUEST 0x00bb -- cgit v1.2.3-60-g2f50