Software /
code /
prosody
Changeset
11910:3a8ec48f7333
MUC: Set .previous_affiliation = "none" if nil, for consistency with .affiliation
It appears nothing currently uses this field in prosody or prosody-modules
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 16 Nov 2021 12:02:54 +0000 |
parents | 11909:b33d71c43ac0 |
children | 11911:0e7dedd8b18d |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Tue Nov 16 11:54:32 2021 +0000 +++ b/plugins/muc/muc.lib.lua Tue Nov 16 12:02:54 2021 +0000 @@ -1429,7 +1429,7 @@ jid = jid; affiliation = affiliation or "none"; reason = reason; - previous_affiliation = target_affiliation; + previous_affiliation = target_affiliation or "none"; data = data and data or nil; -- coerce false to nil };