From 0ff1cce3a289c2a813ed5db13250abbb23d2a9f0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 9 Sep 2014 16:52:53 +0300 Subject: eathena: add packet CMSG_CREAYE_CHAT_ROOM 0x00d5. --- src/net/eathena/chathandler.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/net/eathena/chathandler.cpp') diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index d55a93dbb..414c6e4df 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -221,6 +221,19 @@ void ChatHandler::unIgnoreAll() const outMsg.writeInt8(1, "flag"); } +void ChatHandler::createChatRoom(const std::string &title, + const std::string &password, + const int limit, + const bool isPublic) +{ + MessageOut outMsg(CMSG_CREAYE_CHAT_ROOM); + outMsg.writeInt16(password.size() + title.size() + 5, "len"); + outMsg.writeInt16(static_cast(limit), "limit"); + outMsg.writeInt8(isPublic ? 1 : 0, "public"); + outMsg.writeString(password, 8, "password"); + outMsg.writeString(title, 36, "title"); +} + void ChatHandler::processChat(Net::MessageIn &msg) { BLOCK_START("ChatHandler::processChat") -- cgit v1.2.3-70-g09d2