aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-04-29 16:54:45 +0200
committerKim Alvefur <zash@zash.se>2016-04-29 16:54:45 +0200
commitc4f4daa8a2bbe451ccdce6a8281d95a6acde70dc (patch)
tree1fe5344de5de5607753222bdae8341db44375b3f /plugins/muc/muc.lib.lua
parent47a1e0374cc0432e08b28b004fcecc9113d81643 (diff)
downloadprosody-c4f4daa8a2bbe451ccdce6a8281d95a6acde70dc.tar.gz
prosody-c4f4daa8a2bbe451ccdce6a8281d95a6acde70dc.zip
MUC: Separate force-save parameter from save-entire-state flag
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index 9a7b1f85..eeb531a9 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -769,7 +769,7 @@ function room_mt:process_form(origin, stanza)
end
event.field, event.value = nil, nil;
- self:save();
+ self:save(true);
origin.send(st.reply(stanza));
if next(event.status_codes) then
@@ -852,7 +852,7 @@ function room_mt:handle_admin_query_set_command(origin, stanza)
else
success, errtype, err = nil, "cancel", "bad-request";
end
- self:save();
+ self:save(true);
if not success then
origin.send(st.error_reply(stanza, errtype, err));
else
@@ -1219,7 +1219,7 @@ function room_mt:set_affiliation(actor, jid, affiliation, reason)
end
end
- self:save();
+ self:save(true);
module:fire_event("muc-set-affiliation", {
room = self;