Software /
code /
prosody
Comparison
plugins/muc/muc.lib.lua @ 10689:c6c904e4776e
MUC: Persist affiliation_data in new MUC format!
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 12 Mar 2020 20:32:07 +0000 |
parent | 10688:83668e16b9a3 |
child | 10691:82959e7ecd46 |
comparison
equal
deleted
inserted
replaced
10688:83668e16b9a3 | 10689:c6c904e4776e |
---|---|
1542 local frozen, state; | 1542 local frozen, state; |
1543 if new_format then | 1543 if new_format then |
1544 frozen = { | 1544 frozen = { |
1545 _jid = self.jid; | 1545 _jid = self.jid; |
1546 _data = self._data; | 1546 _data = self._data; |
1547 _affiliation_data = self._affiliation_data; | |
1547 }; | 1548 }; |
1548 for user, affiliation in pairs(self._affiliations) do | 1549 for user, affiliation in pairs(self._affiliations) do |
1549 frozen[user] = affiliation; | 1550 frozen[user] = affiliation; |
1550 end | 1551 end |
1551 else | 1552 else |