Software /
code /
prosody
Changeset
6983:05ef46379165
MUC: Fix previous commit
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 09 Dec 2015 16:33:43 +0100 |
parents | 6982:c515f9491ce6 |
children | 6984:0f633160464c |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Tue Dec 08 20:19:30 2015 +0100 +++ b/plugins/muc/muc.lib.lua Wed Dec 09 16:33:43 2015 +0100 @@ -683,8 +683,8 @@ 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;