|
|
@ -335,14 +335,18 @@ void JabberAccount::connectWithPassword ( const TQString &password )
|
|
|
|
m_jabberClient->disconnect ();
|
|
|
|
m_jabberClient->disconnect ();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// we need to use the old protocol for now
|
|
|
|
|
|
|
|
m_jabberClient->setUseXMPP09 ( true );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// set SSL flag (this should be converted to forceTLS when using the new protocol)
|
|
|
|
// set SSL flag (this should be converted to forceTLS when using the new protocol)
|
|
|
|
m_jabberClient->setUseSSL ( configGroup()->readBoolEntry ( "UseSSL", false ) );
|
|
|
|
m_jabberClient->setUseSSL ( configGroup()->readBoolEntry ( "UseSSL", false ) );
|
|
|
|
|
|
|
|
|
|
|
|
// override server and port (this should be dropped when using the new protocol and no direct SSL)
|
|
|
|
// override server and port (this should be dropped when using the new protocol and no direct SSL)
|
|
|
|
|
|
|
|
if( configGroup()->readBoolEntry ( "CustomServer", false ) ) {
|
|
|
|
|
|
|
|
m_jabberClient->setUseXMPP09 ( true );
|
|
|
|
m_jabberClient->setOverrideHost ( true, server (), port () );
|
|
|
|
m_jabberClient->setOverrideHost ( true, server (), port () );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
m_jabberClient->setUseXMPP09 ( false );
|
|
|
|
|
|
|
|
m_jabberClient->setOverrideHost ( false );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// allow plaintext password authentication or not?
|
|
|
|
// allow plaintext password authentication or not?
|
|
|
|
m_jabberClient->setAllowPlainTextPassword ( configGroup()->readBoolEntry ( "AllowPlainTextPassword", false ) );
|
|
|
|
m_jabberClient->setAllowPlainTextPassword ( configGroup()->readBoolEntry ( "AllowPlainTextPassword", false ) );
|
|
|
|