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 | fe3404124e3dc2ad8284159e72d74842b9f41869 (patch) | |
tree | 1e8b130bd24445c33eeeab467af190063bbaaca0 /plugins/muc | |
parent | 64c33caee65e8e585c89a836247ba55b2a63245c (diff) | |
download | prosody-fe3404124e3dc2ad8284159e72d74842b9f41869.tar.gz prosody-fe3404124e3dc2ad8284159e72d74842b9f41869.zip |
MUC: Fix previous commit
Diffstat (limited to 'plugins/muc')
-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; |