# HG changeset patch # User Goffi # Date 1396289974 -7200 # Node ID b280cf4cdf2523ef4ccd4e0e21151b563475b24f # Parent 0e8c2414f89c6f8e2ecb374a846dff6627dd30a0 plugin XEP-0115: fixed bad disco_infos construction diff -r 0e8c2414f89c -r b280cf4cdf25 src/plugins/plugin_xep_0115.py --- a/src/plugins/plugin_xep_0115.py Mon Mar 31 17:50:07 2014 +0200 +++ b/src/plugins/plugin_xep_0115.py Mon Mar 31 20:19:34 2014 +0200 @@ -89,7 +89,10 @@ @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")