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 | 7ea91caa95e5f1e65a03032559241ec4832203df (patch) | |
tree | 9f885da1a933ab13e2fa3c18bd359e8c240f274b /plugins/muc/members_only.lib.lua | |
parent | e05eb9a0d70487b62ebd85686044af7859696799 (diff) | |
download | prosody-7ea91caa95e5f1e65a03032559241ec4832203df.tar.gz prosody-7ea91caa95e5f1e65a03032559241ec4832203df.zip |
MUC: Save room to storage once after form processing, not in each individual setter
Diffstat (limited to 'plugins/muc/members_only.lib.lua')
-rw-r--r-- | plugins/muc/members_only.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/members_only.lib.lua b/plugins/muc/members_only.lib.lua index 7a6de43b..888e8622 100644 --- a/plugins/muc/members_only.lib.lua +++ b/plugins/muc/members_only.lib.lua @@ -44,7 +44,6 @@ local function set_members_only(room, members_only) module:fire_event("muc-occupant-left", {room = room; nick = occupant.nick; occupant = occupant;}); end end - room:save(true); return true; end @@ -118,6 +117,7 @@ module:hook("muc-invite", function(event) from, invitee, room.jid); -- This might fail; ignore for now room:set_affiliation(from, invitee, "member", "Invited by " .. from); + room:save(); end end end); |