--- a/plugins/muc/muc.lib.lua Mon Dec 23 22:27:25 2019 +0100
+++ b/plugins/muc/muc.lib.lua Mon Dec 23 22:28:04 2019 +0100
@@ -844,10 +844,12 @@
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"));