Mercurial > prosody-hg
comparison plugins/muc/muc.lib.lua @ 7367:2aef5e8b69e9
MUC: Move room deserialization to muc.lib
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 18 Apr 2016 19:26:26 +0200 |
| parents | eb3928903009 |
| children | 4e24aff1e4df |
comparison
equal
deleted
inserted
replaced
| 7366:eb3928903009 | 7367:2aef5e8b69e9 |
|---|---|
| 1250 _data = self._data; | 1250 _data = self._data; |
| 1251 _affiliations = self._affiliations; | 1251 _affiliations = self._affiliations; |
| 1252 } | 1252 } |
| 1253 end | 1253 end |
| 1254 | 1254 |
| 1255 function _M.restore_room(frozen) | |
| 1256 local room_jid = frozen.jid; | |
| 1257 local room = _M.new_room(room_jid, frozen._data); | |
| 1258 room._affiliations = frozen._affiliations; | |
| 1259 return room; | |
| 1260 end | |
| 1261 | |
| 1255 _M.room_mt = room_mt; | 1262 _M.room_mt = room_mt; |
| 1256 | 1263 |
| 1257 return _M; | 1264 return _M; |
