diff options
-rw-r--r-- | plugins/muc/muc.lib.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index ef418b2b..8fbe2376 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -1431,6 +1431,7 @@ function room_mt:set_affiliation(actor, jid, affiliation, reason, data) reason = reason; previous_affiliation = target_affiliation or "none"; data = data and data or nil; -- coerce false to nil + previous_data = self._affiliation_data[jid] or nil; }; module:fire_event("muc-pre-set-affiliation", event_data); |