From c29cc8b15facd52aa6f202402565e07b2477146b Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sun, 2 Jan 2011 16:00:47 +0000 Subject: also fix /join completion (using xep 30), and add a timeout --- src/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core.py') diff --git a/src/core.py b/src/core.py index 87aa5007..b46bd003 100644 --- a/src/core.py +++ b/src/core.py @@ -962,9 +962,9 @@ class Core(object): if jid.resource or jid.full.endswith('/'): # we are writing the resource: complete the node if not the_input.last_completion: - response = self.xmpp.plugin['xep_0030'].getItems(jid.server) + response = self.xmpp.plugin['xep_0030'].get_items(jid=jid.server, block=True, timeout=1) if response: - items = response['disco_items'].getItems() + items = response['disco_items'].get_items() else: return True items = ['%s/%s' % (tup[0], jid.resource) for tup in items] -- cgit v1.2.3