Changeset

11915:e0b58717f0c5

MUC: Actually set the new affiliation data if it was previously empty
author Matthew Wild <mwild1@gmail.com>
date Tue, 16 Nov 2021 15:00:02 +0000
parents 11914:8f7946ce7d66
children 11916:5dae9262f81f
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;