Philipp Hörist pushed to branch master at gajim / python-nbxmpp


Commits:
b7d1e581 by Philipp Hörist at 2019-07-30T19:36:50Z
MUC: Add callback for send_captcha()

- - - - -


1 changed file:

- nbxmpp/modules/muc.py


Changes:

=====================================
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):



View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/commit/b7d1e581951218731711385697269f750f540d82

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/python-nbxmpp/commit/b7d1e581951218731711385697269f750f540d82
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to