Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 7414:1b62c89014c4
MUC: Separate force-save parameter from save-entire-state flag
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 29 Apr 2016 16:54:45 +0200 |
parent | 7413:228396da1e27 |
child | 7415:cbb05b454c13 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Fri Apr 29 14:01:01 2016 +0200 +++ b/plugins/muc/muc.lib.lua Fri Apr 29 16:54:45 2016 +0200 @@ -769,7 +769,7 @@ 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 @@ 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 @@ end end - self:save(); + self:save(true); module:fire_event("muc-set-affiliation", { room = self;