diff options
Diffstat (limited to 'slixmpp/plugins/xep_0077')
-rw-r--r-- | slixmpp/plugins/xep_0077/register.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/slixmpp/plugins/xep_0077/register.py b/slixmpp/plugins/xep_0077/register.py index b4beac84..eb2e7443 100644 --- a/slixmpp/plugins/xep_0077/register.py +++ b/slixmpp/plugins/xep_0077/register.py @@ -9,7 +9,6 @@ import logging import ssl -from slixmpp import coroutine_wrapper from slixmpp.stanza import StreamFeatures, Iq from slixmpp.xmlstream import register_stanza_plugin, JID from slixmpp.plugins import BasePlugin @@ -82,29 +81,26 @@ class XEP_0077(BasePlugin): return True return False - @coroutine_wrapper def get_registration(self, jid=None, ifrom=None, - timeout=None, callback=None, coroutine=False): + timeout=None, callback=None): iq = self.xmpp.Iq() iq['type'] = 'get' iq['to'] = jid iq['from'] = ifrom iq.enable('register') - return iq.send(timeout=timeout, callback=callback, coroutine=coroutine) + return iq.send(timeout=timeout, callback=callback) - @coroutine_wrapper def cancel_registration(self, jid=None, ifrom=None, - timeout=None, callback=None, coroutine=False): + timeout=None, callback=None): iq = self.xmpp.Iq() iq['type'] = 'set' iq['to'] = jid iq['from'] = ifrom iq['register']['remove'] = True - return iq.send(timeout=timeout, callback=callback, coroutine=coroutine) + return iq.send(timeout=timeout, callback=callback) - @coroutine_wrapper def change_password(self, password, jid=None, ifrom=None, - timeout=None, callback=None, coroutine=False): + timeout=None, callback=None): iq = self.xmpp.Iq() iq['type'] = 'set' iq['to'] = jid @@ -115,4 +111,4 @@ class XEP_0077(BasePlugin): else: iq['register']['username'] = self.xmpp.boundjid.user iq['register']['password'] = password - return iq.send(timeout=timeout, callback=callback, coroutine=coroutine) + return iq.send(timeout=timeout, callback=callback) |