From 99b9b1d81b16277c1ea57d2a89a43777fd8bcd90 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 8 Dec 2014 22:49:58 +0100 Subject: =?UTF-8?q?Fix=20#2691=20(don=E2=80=99t=20glitch=20on=20failed=20/?= =?UTF-8?q?configure)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/fixes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/fixes.py b/src/fixes.py index 1c5da7c8..3840a093 100644 --- a/src/fixes.py +++ b/src/fixes.py @@ -41,12 +41,12 @@ def get_version(xmpp, jid, callback=None, **kwargs): def get_room_form(xmpp, room, callback): def _cb(result): if result["type"] == "error": - callback(None) + return callback(None) xform = result.xml.find('{http://jabber.org/protocol/muc#owner}query/{jabber:x:data}x') if xform is None: - callback(None) + return callback(None) form = xmpp.plugin['xep_0004'].buildForm(xform) - callback(form) + return callback(form) iq = xmpp.make_iq_get(ito=room) query = ET.Element('{http://jabber.org/protocol/muc#owner}query') -- cgit v1.2.3