comparison src/plugins/plugin_xep_0065.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
comparison
equal deleted inserted replaced
2128:aa94f33fd2ad 2129:6a66c8c5a567
1250 result_elt = xmlstream.toResponse(iq_elt, 'result') 1250 result_elt = xmlstream.toResponse(iq_elt, 'result')
1251 query_elt = result_elt.addElement((NS_BS, 'query')) 1251 query_elt = result_elt.addElement((NS_BS, 'query'))
1252 query_elt['sid'] = session_data['id'] 1252 query_elt['sid'] = session_data['id']
1253 streamhost_used_elt = query_elt.addElement('streamhost-used') 1253 streamhost_used_elt = query_elt.addElement('streamhost-used')
1254 streamhost_used_elt['jid'] = candidate.jid.full() 1254 streamhost_used_elt['jid'] = candidate.jid.full()
1255 client.xmlstream.send(result_elt) 1255 client.send(result_elt)
1256 1256
1257 1257
1258 class XEP_0065_handler(XMPPHandler): 1258 class XEP_0065_handler(XMPPHandler):
1259 implements(iwokkel.IDisco) 1259 implements(iwokkel.IDisco)
1260 1260