aboutsummaryrefslogtreecommitdiffstats
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
commit5d5fbb462cde24b672ffbef5318102892bc2776e (patch)
tree1d7d69029b8f801d855801373b078cd14d8eef58
parent868b9ea3b9d18a06d20a630ba258c686672ca0be (diff)
downloadprosody-5d5fbb462cde24b672ffbef5318102892bc2776e.tar.gz
prosody-5d5fbb462cde24b672ffbef5318102892bc2776e.zip
MUC: Initialize room with empty affiliation_data if none stored
-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