diff src/plugins/plugin_xep_0277.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 e67e8cd24141
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0277.py	Sun Feb 12 19:23:34 2017 +0100
+++ b/src/plugins/plugin_xep_0277.py	Sun Feb 12 20:43:20 2017 +0100
@@ -105,7 +105,8 @@
         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