Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 6831:428b8da1cfce
MUC: Break a very long line
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 12 Sep 2015 18:52:39 +0200 |
parent | 6054:7a5ddbaf758d |
child | 6835:3afb8aa78069 |
child | 6924:c37ad3e1fdd9 |
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 = {};