# HG changeset patch # User Matthew Wild # Date 1637074802 0 # Node ID e0b58717f0c5196188d83401ea4247fe781bae1d # Parent 8f7946ce7d664ab4d3171a67d46d45a39428ca15 MUC: Actually set the new affiliation data if it was previously empty diff -r 8f7946ce7d66 -r e0b58717f0c5 plugins/muc/muc.lib.lua --- a/plugins/muc/muc.lib.lua Tue Nov 16 13:53:30 2021 +0100 +++ b/plugins/muc/muc.lib.lua Tue Nov 16 15:00:02 2021 +0000 @@ -1539,6 +1539,7 @@ 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;