Diff

plugins/muc/muc.lib.lua @ 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
parent 11912:037b2c019f58
child 12010:f995d62044fa
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;