Fix the iq.send() function, and a bunch of places where it is called

This is a big-and-dirty commit with a bunch of cleanup, maybe breaking a few
things, and not fixing all iq.send() calls yet.
This commit is contained in:
Florent Le Coz
2014-07-30 17:52:59 +02:00
parent 2e571ac950
commit ab03ad54aa
22 changed files with 267 additions and 395 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ class XEP_0078(BasePlugin):
iq['auth']['username'] = self.xmpp.requested_jid.user
try:
resp = iq.send(now=True)
resp = iq.send()
except IqError as err:
log.info("Authentication failed: %s", err.iq['error']['condition'])
self.xmpp.event('failed_auth')
@@ -120,7 +120,7 @@ class XEP_0078(BasePlugin):
# Step 3: Send credentials
try:
result = iq.send(now=True)
result = iq.send()
except IqError as err:
log.info("Authentication failed")
self.xmpp.event("failed_auth")