diff src/plugins/plugin_xep_0050.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 2daf7b4c6756
children 1d3f73e065e1
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0050.py	Wed Feb 01 21:44:24 2017 +0100
+++ b/src/plugins/plugin_xep_0050.py	Sat Feb 04 17:59:13 2017 +0100
@@ -162,7 +162,7 @@
             if payload is not None:
                 command_elt.addChild(payload)
 
-        self.client.xmlstream.send(result)
+        self.client.send(result)
         if status in (XEP_0050.STATUS.COMPLETED, XEP_0050.STATUS.CANCELED):
             del self.sessions[session_id]
 
@@ -176,7 +176,7 @@
         if cmd_condition:
             error_elt = iq_elt.elements(None, "error").next()
             error_elt.addElement(cmd_condition, NS_COMMANDS)
-        self.client.xmlstream.send(iq_elt)
+        self.client.send(iq_elt)
         del self.sessions[session_id]
 
     def onRequest(self, command_elt, requestor, action, session_id):