X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.cpp;h=954565cfc87d70b767227f48c8872b720a1dbc9b;hp=3fd0a1a70431242c5f8c5b998ad657642ef87c53;hb=155eda45e862f42a0b9444d615002deda461328d;hpb=bb6f47baf3c9fe605db67de9ff6ca5b3f50d02e3 diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index 3fd0a1a7..954565cf 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -185,7 +185,6 @@ void CoreNetwork::connectToIrc(bool reconnecting) enablePingTimeout(); #ifdef HAVE_SSL - socket.setProtocol((QSsl::SslProtocol)server.sslVersion); if (server.useSsl) { CoreIdentity *identity = identityPtr(); if (identity) { @@ -265,11 +264,14 @@ void CoreNetwork::putCmd(const QString &cmd, const QList ¶ms, co msg += ":" + prefix + " "; msg += cmd.toUpper().toAscii(); - for (int i = 0; i < params.size() - 1; i++) { - msg += " " + params[i]; + for (int i = 0; i < params.size(); i++) { + msg += " "; + + if (i == params.size() - 1 && (params[i].contains(' ') || (!params[i].isEmpty() && params[i][0] == ':'))) + msg += ":"; + + msg += params[i]; } - if (!params.isEmpty()) - msg += " :" + params.last(); putRawLine(msg); }