From dc1690029d807c815be87f0f94de383decef52b0 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sun, 25 Nov 2018 13:04:37 +0100 Subject: MUC: Fix traceback on muc#admin query with missing child (#1242) Caused by a missing return statement introduced in 494938dec5d8 --- plugins/muc/muc.lib.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 4060535a..7a7ddf41 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -904,6 +904,7 @@ function room_mt:handle_admin_query_set_command(origin, stanza) local item = stanza.tags[1].tags[1]; if not item then origin.send(st.error_reply(stanza, "cancel", "bad-request")); + return true; end if item.attr.jid then -- Validate provided JID item.attr.jid = jid_prep(item.attr.jid); -- cgit v1.2.3