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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user