Make session restore join more than one channel per network (again).
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 18 Feb 2008 00:41:33 +0000 (00:41 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 18 Feb 2008 00:41:33 +0000 (00:41 +0000)
src/core/networkconnection.cpp

index 6ac715c..3799e03 100644 (file)
@@ -174,7 +174,7 @@ void NetworkConnection::networkInitialized(const QString &currentServer) {
   if(chans.count() > 0) {
     qDebug() << "autojoining" << chans;
     QVariantList list;
-    foreach(QString chan, chans) list << serverEncode(chan);
+    list << serverEncode(chans.join(",")); // TODO add channel passwords
     putCmd("JOIN", list);  // FIXME check for 512 byte limit!
   }
   // delete _previousState, we won't need it again