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
commite4a91c1d8f3d8f1a673b220e6812c7038964525b (patch)
tree1fe5344de5de5607753222bdae8341db44375b3f /plugins/muc/muc.lib.lua
parentf97b2a1f08778717d657f788a78193b945dce633 (diff)
downloadprosody-e4a91c1d8f3d8f1a673b220e6812c7038964525b.tar.gz
prosody-e4a91c1d8f3d8f1a673b220e6812c7038964525b.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;