Mercurial > libervia-backend
comparison src/plugins/plugin_xep_0280.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 | 6a004a22dd9e |
comparison
equal
deleted
inserted
replaced
2147:bca699faf416 | 2148:a543eda2c923 |
---|---|
97 activate = self.host.memory.getParamA(PARAM_NAME, PARAM_CATEGORY, profile_key=client.profile) | 97 activate = self.host.memory.getParamA(PARAM_NAME, PARAM_CATEGORY, profile_key=client.profile) |
98 if not activate: | 98 if not activate: |
99 log.info(_(u"Not activating message carbons as requested in params")) | 99 log.info(_(u"Not activating message carbons as requested in params")) |
100 return | 100 return |
101 try: | 101 try: |
102 yield self.host.checkFeatures((NS_CARBONS,), profile=client.profile) | 102 yield self.host.checkFeatures(client, (NS_CARBONS,)) |
103 except exceptions.FeatureNotFound: | 103 except exceptions.FeatureNotFound: |
104 log.warning(_(u"server doesn't handle message carbons")) | 104 log.warning(_(u"server doesn't handle message carbons")) |
105 else: | 105 else: |
106 log.info(_(u"message carbons available, enabling it")) | 106 log.info(_(u"message carbons available, enabling it")) |
107 iq_elt = client.IQ() | 107 iq_elt = client.IQ() |