From 9b5ddfe5426a70aca02cb7444124645891c669ce Mon Sep 17 00:00:00 2001 From: shlainn Date: Wed, 7 Sep 2011 22:13:50 +0200 Subject: [PATCH] * Fixed CMSG_JOIN_CHANNEL --- src/Client/World/Channel.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Client/World/Channel.cpp b/src/Client/World/Channel.cpp index 721a257..cf9c6ae 100644 --- a/src/Client/World/Channel.cpp +++ b/src/Client/World/Channel.cpp @@ -81,9 +81,12 @@ void Channel::Join(std::string channel, std::string password) // Send join channel request WorldPacket worldPacket; worldPacket.SetOpcode(CMSG_JOIN_CHANNEL); - worldPacket << (uint32)0; // new since 2.0.x, some channel ID? server answers us with that number later if channel joined - worldPacket << (uint8)0; // unk - worldPacket << (uint8)0; // unk, new since 2.2.x + if(_worldSession->GetInstance()->GetConf()->clientbuild > 6005) + { + worldPacket << (uint32)0; // new since 2.0.x, some channel ID? server answers us with that number later if channel joined + worldPacket << (uint8)0; // unk + worldPacket << (uint8)0; // unk, new since 2.2.x + } worldPacket << channel << password; _worldSession->SendWorldPacket(worldPacket); }