diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-15 11:50:55 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-15 11:50:55 +0200 |
commit | 45e055d26a8133358518ba4f2c6676a15b2b1c75 (patch) | |
tree | 9f885da1a933ab13e2fa3c18bd359e8c240f274b /plugins/muc/moderated.lib.lua | |
parent | fd375a83984c0faea37365dd9c3d7ef2d2ec8b47 (diff) | |
download | prosody-45e055d26a8133358518ba4f2c6676a15b2b1c75.tar.gz prosody-45e055d26a8133358518ba4f2c6676a15b2b1c75.zip |
MUC: Save room to storage once after form processing, not in each individual setter
Diffstat (limited to 'plugins/muc/moderated.lib.lua')
-rw-r--r-- | plugins/muc/moderated.lib.lua | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/plugins/muc/moderated.lib.lua b/plugins/muc/moderated.lib.lua index a7e6314c..2f53ba4c 100644 --- a/plugins/muc/moderated.lib.lua +++ b/plugins/muc/moderated.lib.lua @@ -15,7 +15,6 @@ local function set_moderated(room, moderated) moderated = moderated and true or nil; if get_moderated(room) == moderated then return false; end room._data.moderated = moderated; - room:save(true); return true; end |