diff --git a/src/plugins/plugin_xep_0277.py b/src/plugins/plugin_xep_0277.py index eca6ed0a..6bd1d6ad 100755 --- a/src/plugins/plugin_xep_0277.py +++ b/src/plugins/plugin_xep_0277.py @@ -104,6 +104,17 @@ class XEP_0277(object): host.bridge.addMethod("mbGetAtom", ".plugin", in_sign='ssiasa{ss}s', out_sign='s', method=self._mbGetAtom, async=True) + def _checkFeaturesCb(self, available): + return {'available': C.BOOL_TRUE} + + def _checkFeaturesEb(self, fail): + return {'available': C.BOOL_FALSE} + + def getFeatures(self, profile): + d = self.host.checkFeatures([], identity=('pubsub', 'pep'), profile=profile) + d.addCallbacks(self._checkFeaturesCb, self._checkFeaturesEb) + return d + ## plugin management methods ## def _itemsReceived(self, itemsEvent, profile):