Make server passwords work
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 18 Mar 2008 15:15:05 +0000 (15:15 +0000)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 18 Mar 2008 15:15:05 +0000 (15:15 +0000)
src/core/networkconnection.cpp
src/qtui/settingspages/servereditdlg.ui
version.inc

index 163f220..43749bc 100644 (file)
@@ -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())));
 }
index ef42b8e..80dac12 100644 (file)
@@ -59,7 +59,7 @@
      <item>
       <widget class="QLineEdit" name="password" >
        <property name="enabled" >
-        <bool>false</bool>
+        <bool>true</bool>
        </property>
        <property name="echoMode" >
         <enum>QLineEdit::Password</enum>
index 123dcfc..67b4af8 100644 (file)
@@ -5,7 +5,7 @@
 
   quasselVersion = "0.2.0-alpha4-pre";
   quasselDate = "2008-03-18";
-  quasselBuild = 642;
+  quasselBuild = 644;
 
   //! Minimum client build number the core needs
   clientBuildNeeded = 642;