Mercurial > libervia-backend
diff src/plugins/plugin_xep_0070.py @ 2129:6a66c8c5a567
core: replaced calls to client.xmlstream.send by client.send which is the right method to use. client.xmlstream should not be used directly
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 04 Feb 2017 17:59:13 +0100 |
parents | 438a49dbfe87 |
children | 1d3f73e065e1 |
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0070.py Wed Feb 01 21:44:24 2017 +0100 +++ b/src/plugins/plugin_xep_0070.py Sat Feb 04 17:59:13 2017 +0100 @@ -129,17 +129,17 @@ # iq log.debug(_(u"XEP-0070 reply iq")) iq_result_elt = xmlstream.toResponse(elt, 'result') - client.xmlstream.send(iq_result_elt) + client.send(iq_result_elt) elif (stanzaType == MSG): # message log.debug(_(u"XEP-0070 reply message")) msg_result_elt = xmlstream.toResponse(elt, 'result') msg_result_elt.addChild(elt.elements(NS_HTTP_AUTH, 'confirm').next()) - client.xmlstream.send(msg_result_elt) + client.send(msg_result_elt) else: log.debug(_(u"XEP-0070 reply error")) result_elt = jabber.error.StanzaError("not-authorized").toResponse(elt) - client.xmlstream.send(result_elt) + client.send(result_elt) class XEP_0070_handler(XMPPHandler):