core (disco): fixed disco capabilities (empty disco was used)

This commit is contained in:
Goffi 2018-05-22 09:59:58 +02:00
commit c0e2a4f84b

View file

@ -79,11 +79,10 @@ class XEP_0115(object):
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