core (disco): fixed disco capabilities (empty disco was used)
This commit is contained in:
parent
a6956d424a
commit
c0e2a4f84b
1 changed files with 10 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue