Clean a new bunch of stuf

This commit is contained in:
Florent Le Coz
2014-07-21 20:27:53 +02:00
parent a2cad40f91
commit 373505f483
13 changed files with 37 additions and 179 deletions

View File

@@ -64,5 +64,4 @@ class FeatureBind(BasePlugin):
if 'session' not in self.features['features']:
log.debug("Established Session")
self.xmpp.sessionstarted = True
self.xmpp.session_started_event.set()
self.xmpp.event('session_start')

View File

@@ -196,7 +196,7 @@ class FeatureMechanisms(BasePlugin):
self.attempted_mechs.add(self.mech.name)
self.xmpp.disconnect()
else:
resp.send(now=True)
resp.send()
return True
@@ -217,7 +217,7 @@ class FeatureMechanisms(BasePlugin):
else:
if resp.get_value() == '':
resp.del_value()
resp.send(now=True)
resp.send()
def _handle_success(self, stanza):
"""SASL authentication succeeded. Restart the stream."""

View File

@@ -51,5 +51,4 @@ class FeatureSession(BasePlugin):
log.debug("Established Session")
self.xmpp.sessionstarted = True
self.xmpp.session_started_event.set()
self.xmpp.event('session_start')

View File

@@ -55,7 +55,7 @@ class FeatureSTARTTLS(BasePlugin):
elif self.xmpp.disable_starttls:
return False
else:
self.xmpp.send(features['starttls'], now=True)
self.xmpp.send(features['starttls'])
return True
def _handle_starttls_proceed(self, proceed):