diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fixes.py | 6 |
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') |