diff options
author | Kim Alvefur <zash@zash.se> | 2015-12-09 16:33:43 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-12-09 16:33:43 +0100 |
commit | ca4e8af415556c119982ed45ccbbbae4d45cb7f4 (patch) | |
tree | 1e8b130bd24445c33eeeab467af190063bbaaca0 /plugins/muc/muc.lib.lua | |
parent | 9305ea7d234c19ccdb938259bb8301c732a8366c (diff) | |
download | prosody-ca4e8af415556c119982ed45ccbbbae4d45cb7f4.tar.gz prosody-ca4e8af415556c119982ed45ccbbbae4d45cb7f4.zip |
MUC: Fix previous commit
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 20e91192..6f21ec3a 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -683,8 +683,8 @@ function room_mt:process_form(origin, stanza) local changed = {}; local function handle_option(name, field, allowed) - local new, err, included = fields[field], errors[field], present[field]; - if not included then return; end + if not present[field] then return; end + local new = fields[field]; if allowed and not allowed[new] then return; end if new == self["get_"..name](self) then return; end changed[name] = true; |