aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r--plugins/muc/muc.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua
index f4a56dbe..c51f53e8 100644
--- a/plugins/muc/muc.lib.lua
+++ b/plugins/muc/muc.lib.lua
@@ -1465,7 +1465,7 @@ function _M.restore_room(frozen, state)
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