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 | a95900e81c072dc7956addc70b1664695a18261e (patch) | |
tree | efc5ceccf569187f563ce353f689d7c6460fe4c7 /plugins/muc/muc.lib.lua | |
parent | 2d7c3d090b88245b323b9b1f474b587a030d6e3e (diff) | |
download | prosody-a95900e81c072dc7956addc70b1664695a18261e.tar.gz prosody-a95900e81c072dc7956addc70b1664695a18261e.zip |
MUC: Make note to handle configuration form errors [luacheck]
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-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")); |