Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 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 |
parent | 9264:f13517b63e6c |
child | 9299:2466b533f63d |
comparison
equal
deleted
inserted
replaced
9264:f13517b63e6c | 9265:585ef5c1b226 |
---|---|
1463 end | 1463 end |
1464 | 1464 |
1465 local occupants = {}; | 1465 local occupants = {}; |
1466 local room_name, room_host = jid_split(room_jid); | 1466 local room_name, room_host = jid_split(room_jid); |
1467 | 1467 |
1468 room._affiliation_data = frozen._affiliation_data; | 1468 room._affiliation_data = frozen._affiliation_data or {}; |
1469 | 1469 |
1470 if frozen.jid and frozen._affiliations then | 1470 if frozen.jid and frozen._affiliations then |
1471 -- Old storage format | 1471 -- Old storage format |
1472 room._affiliations = frozen._affiliations; | 1472 room._affiliations = frozen._affiliations; |
1473 else | 1473 else |