core (memory/disco): getInfos now handle node + use client instead of profile in many methods

This commit is contained in:
Goffi 2017-02-12 20:43:20 +01:00
commit 3bc851abf2

View file

@ -105,7 +105,8 @@ class XEP_0277(object):
return {'available': C.BOOL_FALSE}
def getFeatures(self, profile):
d = self.host.checkFeatures([], identity=('pubsub', 'pep'), profile=profile)
client = self.host.getClient(profile)
d = self.host.checkFeatures(client, [], identity=('pubsub', 'pep'))
d.addCallbacks(self._checkFeaturesCb, self._checkFeaturesEb)
return d