summaryrefslogtreecommitdiff
path: root/src/net/eathena
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-28 23:01:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-28 23:01:11 +0300
commit4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6 (patch)
tree6694e0fcbe744e835251fbe438a4fc09d0d8c401 /src/net/eathena
parent388e14d628a67dd981c2cef7d7553d7cad22e091 (diff)
downloadmv-4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6.tar.gz
mv-4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6.tar.bz2
mv-4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6.tar.xz
mv-4e5cc9a9f4bcd7ba16f3bdbdce08fc4213164ff6.zip
eathena: add packet CMSG_LEAVE_CHAT_ROOM 0x00e3.
Diffstat (limited to 'src/net/eathena')
-rw-r--r--src/net/eathena/chathandler.cpp5
-rw-r--r--src/net/eathena/chathandler.h2
-rw-r--r--src/net/eathena/protocol.h1
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