From fe3404124e3dc2ad8284159e72d74842b9f41869 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 9 Dec 2015 16:33:43 +0100 Subject: MUC: Fix previous commit --- plugins/muc/muc.lib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/muc/muc.lib.lua') 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; -- cgit v1.2.3