Diff

plugins/muc/muc.lib.lua @ 9265:585ef5c1b226

MUC: Initialize room with empty affiliation_data if none stored
author Matthew Wild <mwild1@gmail.com>
date Tue, 04 Sep 2018 21:55:40 +0100
parent 9264:f13517b63e6c
child 9299:2466b533f63d
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Tue Sep 04 18:00:43 2018 +0200
+++ b/plugins/muc/muc.lib.lua	Tue Sep 04 21:55:40 2018 +0100
@@ -1465,7 +1465,7 @@
 	local occupants = {};
 	local room_name, room_host = jid_split(room_jid);
 
-	room._affiliation_data = frozen._affiliation_data;
+	room._affiliation_data = frozen._affiliation_data or {};
 
 	if frozen.jid and frozen._affiliations then
 		-- Old storage format