Fix error in the registration example.
The now=True parameter was not being passed to allow the registration submission to be submitted while the send queue is paused.
This commit is contained in:
parent
e2ce5ae222
commit
b077ef9150
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ class RegisterBot(sleekxmpp.ClientXMPP):
|
|||
resp['register']['password'] = self.password
|
||||
|
||||
try:
|
||||
resp.send()
|
||||
resp.send(now=True)
|
||||
logging.info("Account created for %s!" % self.boundjid)
|
||||
except IqError as e:
|
||||
logging.error("Could not register account: %s" %
|
||||
|
|
Loading…
Reference in a new issue