From b9119a8251fdac5f0b7452b5576583eebe71a402 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Wed, 10 Feb 2016 19:58:52 +0100 Subject: [PATCH] Don't prefix the nick with a colon while connecting to a server For the NICK command during the initial connection handshake, we always prefixed the parameter with a colon. While this is not an RFC violation, it is unnecessary as nicks can't contain spaces. Worse, it confuses some obscure ircds... --- src/core/corenetwork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index dd1bf2e7..a6dc7855 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -496,7 +496,7 @@ void CoreNetwork::socketInitialized() else { nick = identity->nicks()[0]; } - putRawLine(serverEncode(QString("NICK :%1").arg(nick))); + putRawLine(serverEncode(QString("NICK %1").arg(nick))); putRawLine(serverEncode(QString("USER %1 8 * :%2").arg(identity->ident(), identity->realName()))); } -- 2.20.1