X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fprotocols%2Flegacy%2Flegacypeer.cpp;h=ebbd164ebc76a5d2d814a0301f95a6b1b45d496e;hp=f59dffa6a02e0b835324421f83926d710c6d2b6f;hb=53861faa5551606eea31588b65ba501b24fb2e1a;hpb=30fa961d1aca319b52071ad9d6e4527ea2638fb7 diff --git a/src/common/protocols/legacy/legacypeer.cpp b/src/common/protocols/legacy/legacypeer.cpp index f59dffa6..ebbd164e 100644 --- a/src/common/protocols/legacy/legacypeer.cpp +++ b/src/common/protocols/legacy/legacypeer.cpp @@ -151,7 +151,7 @@ void LegacyPeer::handleHandshakeMessage(const QVariant &msg) socket()->setProperty("UseCompression", true); } #endif - handle(RegisterClient(m["ClientVersion"].toString(), m["ClientDate"].toString(), m["UseSsl"].toBool())); + handle(RegisterClient(m["ClientVersion"].toString(), m["ClientDate"].toString(), m["UseSsl"].toBool(), m["Features"].toInt())); } else if (msgType == "ClientInitReject") { @@ -214,6 +214,7 @@ void LegacyPeer::dispatch(const RegisterClient &msg) { m["MsgType"] = "ClientInit"; m["ClientVersion"] = msg.clientVersion; m["ClientDate"] = msg.buildDate; + m["Features"] = msg.clientFeatures; // FIXME only in compat mode m["ProtocolVersion"] = protocolVersion;