Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 10690:27d15097c235 0.11
MUC: Persist affiliation_data in new MUC format!
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 12 Mar 2020 20:32:07 +0000 |
| parents | 3db8372e203c |
| children | 82959e7ecd46 925081396c59 |
comparison
equal
deleted
inserted
replaced
| 10682:62ef68f95b6f | 10690:27d15097c235 |
|---|---|
| 1447 local frozen, state; | 1447 local frozen, state; |
| 1448 if new_format then | 1448 if new_format then |
| 1449 frozen = { | 1449 frozen = { |
| 1450 _jid = self.jid; | 1450 _jid = self.jid; |
| 1451 _data = self._data; | 1451 _data = self._data; |
| 1452 _affiliation_data = self._affiliation_data; | |
| 1452 }; | 1453 }; |
| 1453 for user, affiliation in pairs(self._affiliations) do | 1454 for user, affiliation in pairs(self._affiliations) do |
| 1454 frozen[user] = affiliation; | 1455 frozen[user] = affiliation; |
| 1455 end | 1456 end |
| 1456 else | 1457 else |
