diff options
Diffstat (limited to 'src/client/QXmppOutgoingClient.cpp')
| -rw-r--r-- | src/client/QXmppOutgoingClient.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/QXmppOutgoingClient.cpp b/src/client/QXmppOutgoingClient.cpp index bb6f0740..f9d7c7df 100644 --- a/src/client/QXmppOutgoingClient.cpp +++ b/src/client/QXmppOutgoingClient.cpp @@ -377,6 +377,12 @@ void QXmppOutgoingClient::handleStanza(const QDomElement &nodeRecv) // supported and preferred SASL auth mechanisms QStringList supportedMechanisms = QXmppSaslClient::availableMechanisms(); const QString preferredMechanism = configuration().saslAuthMechanism(); + if (configuration().facebookAppId().isEmpty() || configuration().facebookAccessToken().isEmpty()) + supportedMechanisms.removeAll("X-FACEBOOK-PLATFORM"); + if (configuration().windowsLiveAccessToken().isEmpty()) + supportedMechanisms.removeAll("X-MESSENGER-OAUTH2"); + if (configuration().googleAccessToken().isEmpty()) + supportedMechanisms.removeAll("X-OAUTH2"); // determine SASL Authentication mechanism to use QStringList commonMechanisms; |
