summaryrefslogtreecommitdiff
path: root/slixmpp/plugins/xep_0077/register.py
diff options
context:
space:
mode:
Diffstat (limited to 'slixmpp/plugins/xep_0077/register.py')
-rw-r--r--slixmpp/plugins/xep_0077/register.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/slixmpp/plugins/xep_0077/register.py b/slixmpp/plugins/xep_0077/register.py
index 133f025a..eb2e7443 100644
--- a/slixmpp/plugins/xep_0077/register.py
+++ b/slixmpp/plugins/xep_0077/register.py
@@ -81,26 +81,25 @@ class XEP_0077(BasePlugin):
return True
return False
- def get_registration(self, jid=None, ifrom=None, block=True,
+ def get_registration(self, jid=None, ifrom=None,
timeout=None, callback=None):
iq = self.xmpp.Iq()
iq['type'] = 'get'
iq['to'] = jid
iq['from'] = ifrom
iq.enable('register')
- return iq.send(block=block, timeout=timeout,
- callback=callback)
+ return iq.send(timeout=timeout, callback=callback)
- def cancel_registration(self, jid=None, ifrom=None, block=True,
+ def cancel_registration(self, jid=None, ifrom=None,
timeout=None, callback=None):
iq = self.xmpp.Iq()
iq['type'] = 'set'
iq['to'] = jid
iq['from'] = ifrom
iq['register']['remove'] = True
- return iq.send(block=block, timeout=timeout, callback=callback)
+ return iq.send(timeout=timeout, callback=callback)
- def change_password(self, password, jid=None, ifrom=None, block=True,
+ def change_password(self, password, jid=None, ifrom=None,
timeout=None, callback=None):
iq = self.xmpp.Iq()
iq['type'] = 'set'
@@ -112,4 +111,4 @@ class XEP_0077(BasePlugin):
else:
iq['register']['username'] = self.xmpp.boundjid.user
iq['register']['password'] = password
- return iq.send(block=block, timeout=timeout, callback=callback)
+ return iq.send(timeout=timeout, callback=callback)