diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-29 12:36:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-29 12:36:24 +0300 |
commit | 23b0787ad33fc01e3a65bd53f2d8bc9f52a91224 (patch) | |
tree | 4cf293d3c4afd9a9c40b454b811a62f70a296818 /src/net/eathena/chathandler.cpp | |
parent | 523c9239668819844966097bd82445863d89103f (diff) | |
download | mv-23b0787ad33fc01e3a65bd53f2d8bc9f52a91224.tar.gz mv-23b0787ad33fc01e3a65bd53f2d8bc9f52a91224.tar.bz2 mv-23b0787ad33fc01e3a65bd53f2d8bc9f52a91224.tar.xz mv-23b0787ad33fc01e3a65bd53f2d8bc9f52a91224.zip |
eathena: add packet CMSG_SET_CHAT_ROOM_OPTIONS 0x00de.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 78e909d62..ad30750a5 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -944,4 +944,18 @@ void ChatHandler::leaveChatRoom() const createOutPacket(CMSG_LEAVE_CHAT_ROOM); } +void ChatHandler::setChatRoomOptions(const int limit, + const bool isPublic, + const std::string &password, + const std::string &title) const +{ + createOutPacket(CMSG_SET_CHAT_ROOM_OPTIONS); + const int sz = title.size(); + outMsg.writeInt16(15 + sz, "len"); + outMsg.writeInt16(static_cast<int16_t>(limit), "limit"); + outMsg.writeInt8(static_cast<int8_t>(isPublic ? 1 : 0), "type"); + outMsg.writeString(password, 8, "password"); + outMsg.writeString(title, sz, "title"); +} + } // namespace EAthena |