Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
6982:c515f9491ce6 | 6983:05ef46379165 |
---|---|
681 end | 681 end |
682 | 682 |
683 local changed = {}; | 683 local changed = {}; |
684 | 684 |
685 local function handle_option(name, field, allowed) | 685 local function handle_option(name, field, allowed) |
686 local new, err, included = fields[field], errors[field], present[field]; | 686 if not present[field] then return; end |
687 if not included then return; end | 687 local new = fields[field]; |
688 if allowed and not allowed[new] then return; end | 688 if allowed and not allowed[new] then return; end |
689 if new == self["get_"..name](self) then return; end | 689 if new == self["get_"..name](self) then return; end |
690 changed[name] = true; | 690 changed[name] = true; |
691 self["set_"..name](self, new); | 691 self["set_"..name](self, new); |
692 end | 692 end |