aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/muc.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-09-04 21:55:40 +0100
committerMatthew Wild <mwild1@gmail.com>2018-09-04 21:55:40 +0100
commitbb23075a86e50781ce3b792474289f78d0e68e84 (patch)
tree1d7d69029b8f801d855801373b078cd14d8eef58 /plugins/muc/muc.lib.lua
parent08e97e608a817e7edf4e364e2afac444b7c7733b (diff)
downloadprosody-bb23075a86e50781ce3b792474289f78d0e68e84.tar.gz
prosody-bb23075a86e50781ce3b792474289f78d0e68e84.zip
MUC: Initialize room with empty affiliation_data if none stored
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