aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2015-09-12 18:52:39 +0200
committerKim Alvefur <zash@zash.se>2015-09-12 18:52:39 +0200
commitd90975c195e3ce0f4b7afea2f1fadd9f7d77669c (patch)
tree5b1e286215e2d48a6a9f0e8c76fc4c73874d3596
parente91df7d788d51243d6a560aab0ac36ac3e948c7e (diff)
downloadprosody-d90975c195e3ce0f4b7afea2f1fadd9f7d77669c.tar.gz
prosody-d90975c195e3ce0f4b7afea2f1fadd9f7d77669c.zip
MUC: Break a very long line
-rw-r--r--plugins/muc/muc.lib.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 8cf8d882..c32da338 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -675,8 +675,10 @@ function room_mt:process_form(origin, stanza)
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 = {};