summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-03-19 06:05:15 -0700
committerLance Stout <lancestout@gmail.com>2012-03-19 06:05:15 -0700
commitb077ef91502c2e723afe5e0130c85103b0118648 (patch)
treec0f61b6046b01b6e13f0893eaa7cc5df6de13734 /examples
parente2ce5ae222d635050663bf992b496ba39fff62c8 (diff)
downloadslixmpp-b077ef91502c2e723afe5e0130c85103b0118648.tar.gz
slixmpp-b077ef91502c2e723afe5e0130c85103b0118648.tar.bz2
slixmpp-b077ef91502c2e723afe5e0130c85103b0118648.tar.xz
slixmpp-b077ef91502c2e723afe5e0130c85103b0118648.zip
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.
Diffstat (limited to 'examples')
-rw-r--r--examples/register_account.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/register_account.py b/examples/register_account.py
index 530afaec..17f075ab 100644
--- a/examples/register_account.py
+++ b/examples/register_account.py
@@ -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" %