summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-12-08 22:49:58 +0100
committermathieui <mathieui@mathieui.net>2014-12-08 22:49:58 +0100
commit99b9b1d81b16277c1ea57d2a89a43777fd8bcd90 (patch)
tree8e2a0de929c592f8f9e4210199f95b00c5995bb4 /src
parentd6ec1897763d34eff46a048676bd421ec11d8b62 (diff)
downloadpoezio-99b9b1d81b16277c1ea57d2a89a43777fd8bcd90.tar.gz
poezio-99b9b1d81b16277c1ea57d2a89a43777fd8bcd90.tar.bz2
poezio-99b9b1d81b16277c1ea57d2a89a43777fd8bcd90.tar.xz
poezio-99b9b1d81b16277c1ea57d2a89a43777fd8bcd90.zip
Fix #2691 (don’t glitch on failed /configure)
Diffstat (limited to 'src')
-rw-r--r--src/fixes.py6
1 files changed, 3 insertions, 3 deletions
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')