MUC: Break a very long line
authorKim Alvefur <zash@zash.se>
Sat, 12 Sep 2015 18:52:39 +0200
changeset 6834 428b8da1cfce
parent 6833 e08f5d081a6c
child 6835 9566a15d3e59
MUC: Break a very long line
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Sat Sep 12 17:49:47 2015 +0200
+++ b/plugins/muc/muc.lib.lua	Sat Sep 12 18:52:39 2015 +0200
@@ -675,8 +675,10 @@
 	if form.attr.type ~= "submit" then origin.send(st.error_reply(stanza, "cancel", "bad-request", "Not a submitted form")); return; end
 
 	local fields = 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")); return; end
-
+	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"));
+		return;
+	end
 
 	local changed = {};