diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-28 23:01:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-28 23:01:11 +0300 |
commit | 4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6 (patch) | |
tree | 6694e0fcbe744e835251fbe438a4fc09d0d8c401 /src/net/eathena | |
parent | 388e14d628a67dd981c2cef7d7553d7cad22e091 (diff) | |
download | manaverse-4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6.tar.gz manaverse-4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6.tar.bz2 manaverse-4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6.tar.xz manaverse-4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6.zip |
eathena: add packet CMSG_LEAVE_CHAT_ROOM 0x00e3.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 5 | ||||
-rw-r--r-- | src/net/eathena/chathandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 8 insertions, 0 deletions
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 |