Changeset

6831:428b8da1cfce

MUC: Break a very long line
author Kim Alvefur <zash@zash.se>
date Sat, 12 Sep 2015 18:52:39 +0200
parents 6830:e08f5d081a6c
children 6832:9566a15d3e59
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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 = {};