Software /
code /
prosody
Changeset
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 |
parents | 9264:f13517b63e6c |
children | 9266:c5267f5fd6e6 |
files | plugins/muc/muc.lib.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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