changeset 962:b280cf4cdf25

plugin XEP-0115: fixed bad disco_infos construction
author Goffi <goffi@goffi.org>
date Mon, 31 Mar 2014 20:19:34 +0200
parents 0e8c2414f89c
children 723f28cd15c7
files src/plugins/plugin_xep_0115.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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")