diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-09-04 21:55:40 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-09-04 21:55:40 +0100 |
commit | bb23075a86e50781ce3b792474289f78d0e68e84 (patch) | |
tree | 1d7d69029b8f801d855801373b078cd14d8eef58 | |
parent | 08e97e608a817e7edf4e364e2afac444b7c7733b (diff) | |
download | prosody-bb23075a86e50781ce3b792474289f78d0e68e84.tar.gz prosody-bb23075a86e50781ce3b792474289f78d0e68e84.zip |
MUC: Initialize room with empty affiliation_data if none stored
-rw-r--r-- | plugins/muc/muc.lib.lua | 2 |
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 |