From c4f4daa8a2bbe451ccdce6a8281d95a6acde70dc Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 29 Apr 2016 16:54:45 +0200 Subject: MUC: Separate force-save parameter from save-entire-state flag --- plugins/muc/muc.lib.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/muc/muc.lib.lua') 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; -- cgit v1.2.3