diff sat/plugins/plugin_xep_0115.py @ 2587:e70023e84974

core (disco): fixed disco capabilities (empty disco was used)
author Goffi <goffi@goffi.org>
date Tue, 22 May 2018 09:59:58 +0200
parents 26edcf3a30eb
children 56f94936df1e
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0115.py	Fri May 11 20:06:06 2018 +0200
+++ b/sat/plugins/plugin_xep_0115.py	Tue May 22 09:59:58 2018 +0200
@@ -79,11 +79,10 @@
         disco_infos = disco.DiscoInfo()
         for item in _infos:
             disco_infos.append(item)
-        disco_infos = disco.DiscoInfo()
         cap_hash = client._caps_hash = self.host.memory.disco.generateHash(disco_infos)
-        log.info("Our capability hash has been generated: [{cap_hash}]".format(
+        log.info(u"Our capability hash has been generated: [{cap_hash}]".format(
             cap_hash = cap_hash))
-        log.debug("Generating capability domish.Element")
+        log.debug(u"Generating capability domish.Element")
         c_elt = domish.Element((NS_ENTITY_CAPABILITY, 'c'))
         c_elt['hash'] = 'sha-1'
         c_elt['node'] = C.APP_URL