# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1577136484 -3600
# Node ID 4d8119ffd43360f31873cfc4d3ff9d894615affb
# Parent  f1cf8c08a09d1a4ed8fa0b8a4f504b0478a7f909
MUC: Make note to handle configuration form errors [luacheck]

diff -r f1cf8c08a09d -r 4d8119ffd433 plugins/muc/muc.lib.lua
--- 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"));