diff options
author | Kim Alvefur <zash@zash.se> | 2018-11-25 13:04:37 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-11-25 13:04:37 +0100 |
commit | 50c2429abfa74e762feada139792e3a82bcf5e14 (patch) | |
tree | 13a44162e9bb86d35c2ba0ccbd01ef42834b9f84 | |
parent | e19c5cd692966a3904156e4517d6cbec4b5f07e2 (diff) | |
download | prosody-50c2429abfa74e762feada139792e3a82bcf5e14.tar.gz prosody-50c2429abfa74e762feada139792e3a82bcf5e14.zip |
MUC: Fix traceback on muc#admin query with missing <item> child (#1242)
Caused by a missing return statement introduced in 494938dec5d8
-rw-r--r-- | plugins/muc/muc.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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); |