diff options
author | Matthew Wild <mwild1@gmail.com> | 2021-11-16 15:00:02 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2021-11-16 15:00:02 +0000 |
commit | 820eabbed63719a2ee4fa731de74e23f245af75b (patch) | |
tree | 9f934da50d4d764c064be5de6d68bcb2d2910f10 /plugins | |
parent | 62c74a6ad33448812739e91a3dadccddc9637d59 (diff) | |
download | prosody-820eabbed63719a2ee4fa731de74e23f245af75b.tar.gz prosody-820eabbed63719a2ee4fa731de74e23f245af75b.zip |
MUC: Actually set the new affiliation data if it was previously empty
Diffstat (limited to 'plugins')
-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 8fbe2376..01704a36 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -1539,6 +1539,7 @@ function room_mt:set_affiliation_data(jid, key, value) if not data then if value == nil then return true; end data = {}; + self._affiliation_data[jid] = data; end local old_value = data[key]; data[key] = value; |