X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fnetworkconnection.cpp;h=43749bcd43ece0899c3eb0fd4d2cdf35b1fd7a8f;hp=163f220d6c4b30ad72a9736a30b6a941b2e4a032;hb=d474ca8e41ebb9b4f057876560ec93a60d06d0da;hpb=6ac855b96988ebc999f7017765ae3dbda527301a diff --git a/src/core/networkconnection.cpp b/src/core/networkconnection.cpp index 163f220d..43749bcd 100644 --- a/src/core/networkconnection.cpp +++ b/src/core/networkconnection.cpp @@ -347,6 +347,10 @@ void NetworkConnection::socketInitialized() { disconnectFromIrc(); return; } + QString passwd = network()->serverList()[_lastUsedServerlistIndex].toMap()["Password"].toString(); + if(!passwd.isEmpty()) { + putRawLine(serverEncode(QString("PASS %1").arg(passwd))); + } putRawLine(serverEncode(QString("NICK :%1").arg(identity->nicks()[0]))); // FIXME: try more nicks if error occurs putRawLine(serverEncode(QString("USER %1 8 * :%2").arg(identity->ident(), identity->realName()))); }