Remove unneeded ssl_support checks.

This commit is contained in:
Lance Stout
2012-10-10 11:42:24 -07:00
parent 675c0112ac
commit e2e8c4b5dc
2 changed files with 50 additions and 63 deletions

View File

@@ -54,13 +54,9 @@ class FeatureSTARTTLS(BasePlugin):
return False
elif not self.xmpp.use_tls:
return False
elif self.xmpp.ssl_support:
else:
self.xmpp.send(features['starttls'], now=True)
return True
else:
log.warning("The module tlslite is required to log in" + \
" to some servers, and has not been found.")
return False
def _handle_starttls_proceed(self, proceed):
"""Restart the XML stream when TLS is accepted."""