diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-23 22:28:04 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-23 22:28:04 +0100 |
commit | 5aeaa9dc903d109bd2b71eb826f52d5e3ab7d54b (patch) | |
tree | efc5ceccf569187f563ce353f689d7c6460fe4c7 | |
parent | 7f50de114c80d8ea3723381fd36b819ce3bf3aa7 (diff) | |
download | prosody-5aeaa9dc903d109bd2b71eb826f52d5e3ab7d54b.tar.gz prosody-5aeaa9dc903d109bd2b71eb826f52d5e3ab7d54b.zip |
MUC: Make note to handle configuration form errors [luacheck]
-rw-r--r-- | plugins/muc/muc.lib.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 7226a7bf..399b090e 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -844,10 +844,12 @@ function room_mt:process_form(origin, stanza) if form.attr.type == "cancel" then origin.send(st.reply(stanza)); elseif form.attr.type == "submit" then + -- luacheck: ignore 231/errors local fields, errors, present; if form.tags[1] == nil then -- Instant room fields, present = {}, {}; else + -- FIXME handle form errors fields, errors, present = self:get_form_layout(stanza.attr.from):data(form); if fields.FORM_TYPE ~= "http://jabber.org/protocol/muc#roomconfig" then origin.send(st.error_reply(stanza, "cancel", "bad-request", "Form is not of type room configuration")); |