MUC: Fix previous commit
authorKim Alvefur <zash@zash.se>
Wed, 9 Dec 2015 15:33:43 +0000 (16:33 +0100)
committerKim Alvefur <zash@zash.se>
Wed, 9 Dec 2015 15:33:43 +0000 (16:33 +0100)
plugins/muc/muc.lib.lua

index 20e91192f0a5c54e582edd23bcbe1b827835476c..6f21ec3a14013afa92cecd899c60bc9ecc51f47d 100644 (file)
@@ -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;