plugin XEP-0115: fixed bad disco_infos construction
This commit is contained in:
parent
b1fbfe3292
commit
9d24e951d3
1 changed files with 4 additions and 1 deletions
|
|
@ -89,7 +89,10 @@ class XEP_0115(object):
|
|||
@defer.inlineCallbacks
|
||||
def recalculateHash(self, profile):
|
||||
client = self.host.getClient(profile)
|
||||
disco_infos = yield client.discoHandler.info(client.jid, client.jid, '')
|
||||
_infos = yield client.discoHandler.info(client.jid, client.jid, '')
|
||||
disco_infos = disco.DiscoInfo()
|
||||
for item in _infos:
|
||||
disco_infos.append(item)
|
||||
cap_hash = self.host.memory.disco.generateHash(disco_infos)
|
||||
info("Our capability hash has been generated: [%s]" % cap_hash)
|
||||
debug("Generating capability domish.Element")
|
||||
|
|
|
|||
Loading…
Reference in a new issue