diff options
author | Philipp Hörist <philipp@hoerist.com> | 2019-07-30 22:36:50 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2019-07-30 22:36:50 +0300 |
commit | b7d1e581951218731711385697269f750f540d82 (patch) | |
tree | 862027c8839c7b2365ec0ad1eb918a73988da0a5 /nbxmpp/modules | |
parent | de3727290a8c22c5a8aa165531bea0b64319020a (diff) |
MUC: Add callback for send_captcha()
Diffstat (limited to 'nbxmpp/modules')
-rw-r--r-- | nbxmpp/modules/muc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nbxmpp/modules/muc.py b/nbxmpp/modules/muc.py index 3516287..9b32051 100644 --- a/nbxmpp/modules/muc.py +++ b/nbxmpp/modules/muc.py @@ -488,11 +488,12 @@ class MUC: muc_user.setTagData('password', password) return message + @call_on_response('_default_response') def send_captcha(self, room_jid, form_node): iq = Iq(typ='set', to=room_jid) captcha = iq.addChild(name='captcha', namespace=NS_CAPTCHA) captcha.addChild(node=form_node) - self._client.send(iq) + return iq @callback def _default_response(self, stanza): |