aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit1622b09c2c5cbb0c1d6889df56b39d9a1afd9e73 (patch)
tree5b1e286215e2d48a6a9f0e8c76fc4c73874d3596 /plugins
parent11f10d8b3129cca859b156148e41ca8dcbe13041 (diff)
downloadprosody-1622b09c2c5cbb0c1d6889df56b39d9a1afd9e73.tar.gz
prosody-1622b09c2c5cbb0c1d6889df56b39d9a1afd9e73.zip
MUC: Break a very long line
Diffstat (limited to 'plugins')
-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 = {};