comparison src/plugins/plugin_xep_0092.py @ 2148:a543eda2c923

core (memory/disco): getInfos now handle node + use client instead of profile in many methods
author Goffi <goffi@goffi.org>
date Sun, 12 Feb 2017 20:43:20 +0100
parents 33c8c4973743
children 8b37a62336c3
comparison
equal deleted inserted replaced
2147:bca699faf416 2148:a543eda2c923
76 iq_elt['to'] = jid_.full() 76 iq_elt['to'] = jid_.full()
77 iq_elt.addElement("query", NS_VERSION) 77 iq_elt.addElement("query", NS_VERSION)
78 d = iq_elt.send() 78 d = iq_elt.send()
79 d.addCallback(self._gotVersion) 79 d.addCallback(self._gotVersion)
80 return d 80 return d
81 d = self.host.checkFeature(NS_VERSION, jid_, client.profile) 81 d = self.host.checkFeature(client, NS_VERSION, jid_)
82 d.addCallback(getVersion) 82 d.addCallback(getVersion)
83 reactor.callLater(TIMEOUT, d.cancel) # XXX: timeout needed because some clients don't answer the IQ 83 reactor.callLater(TIMEOUT, d.cancel) # XXX: timeout needed because some clients don't answer the IQ
84 return d 84 return d
85 85
86 def _gotVersion(self, iq_elt): 86 def _gotVersion(self, iq_elt):