diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-03 22:12:17 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-03 22:12:17 +0300 |
commit | 565e617983d0eaa52131056cd2bc15c9e4a1bece (patch) | |
tree | eb3993bbc44f3176e62a7e901e760296af09941e /src/net/eathena/chathandler.cpp | |
parent | 9a62661a3b833f7f74f65c1733af8d3a25af9702 (diff) | |
download | plus-565e617983d0eaa52131056cd2bc15c9e4a1bece.tar.gz plus-565e617983d0eaa52131056cd2bc15c9e4a1bece.tar.bz2 plus-565e617983d0eaa52131056cd2bc15c9e4a1bece.tar.xz plus-565e617983d0eaa52131056cd2bc15c9e4a1bece.zip |
eathena: add packet CMSG_CHAT_PART_CHANNEL 0x0b09.
Diffstat (limited to 'src/net/eathena/chathandler.cpp')
-rw-r--r-- | src/net/eathena/chathandler.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/chathandler.cpp b/src/net/eathena/chathandler.cpp index 4c3340836..37f63fbcb 100644 --- a/src/net/eathena/chathandler.cpp +++ b/src/net/eathena/chathandler.cpp @@ -646,4 +646,13 @@ void ChatHandler::processJoinChannel(Net::MessageIn &msg) } } +void ChatHandler::partChannel(const std::string &channel) +{ + if (serverFeatures->haveJoinChannel()) + { + createOutPacket(CMSG_CHAT_PART_CHANNEL); + outMsg.writeString(channel, 24, "channel name"); + } +} + } // namespace EAthena |