summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2011-01-02 15:50:01 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2011-01-02 15:50:01 +0000
commit11357165186dce6614b03399f025febd4c48183e (patch)
tree1001faabe80a6637d9ac89beb1131fca7395dd0c /src/core.py
parent15f7340661e0ef4b375e54dabc1f3c1f6f885c38 (diff)
downloadpoezio-11357165186dce6614b03399f025febd4c48183e.tar.gz
poezio-11357165186dce6614b03399f025febd4c48183e.tar.bz2
poezio-11357165186dce6614b03399f025febd4c48183e.tar.xz
poezio-11357165186dce6614b03399f025febd4c48183e.zip
fix /list with new SleekXMPP xep_0030 version. Also add some error handling and a '(loading)' information while waiting for the answer
Diffstat (limited to 'src/core.py')
-rw-r--r--src/core.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/core.py b/src/core.py
index bb9ee444..87aa5007 100644
--- a/src/core.py
+++ b/src/core.py
@@ -890,11 +890,7 @@ class Core(object):
server = arg.strip()
list_tab = tabs.MucListTab(self, server)
self.add_tab(list_tab, True)
- res = self.xmpp.plugin['xep_0030'].getItems(server)
- items = [{'node-part':JID(item[0]).user,
- 'jid': item[0],
- 'name': item[2]} for item in res['disco_items'].getItems()]
- list_tab.listview.add_lines(items)
+ self.xmpp.plugin['xep_0030'].get_items(jid=server, block=False, callback=list_tab.on_muc_list_item_received)
def command_whois(self, arg):
"""