Diff

plugins/muc/muc.lib.lua @ 6983:05ef46379165

MUC: Fix previous commit
author Kim Alvefur <zash@zash.se>
date Wed, 09 Dec 2015 16:33:43 +0100
parent 6982:c515f9491ce6
child 6988:329d5fb8a9d3
child 7012:990b4ddaf582
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;