projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ee0b32
)
MUC: Fix previous commit
author
Kim Alvefur
<zash@zash.se>
Wed, 9 Dec 2015 15:33:43 +0000
(16:33 +0100)
committer
Kim Alvefur
<zash@zash.se>
Wed, 9 Dec 2015 15:33:43 +0000
(16:33 +0100)
plugins/muc/muc.lib.lua
patch
|
blob
|
history
diff --git
a/plugins/muc/muc.lib.lua
b/plugins/muc/muc.lib.lua
index 20e91192f0a5c54e582edd23bcbe1b827835476c..6f21ec3a14013afa92cecd899c60bc9ecc51f47d 100644
(file)
--- 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;