Software /
code /
prosody
Diff
plugins/muc/muc.lib.lua @ 7360:7a37fade5380
MUC: Move 'preserialization' step to muc.lib
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 17 Apr 2016 22:09:44 +0200 |
parent | 7353:ca31d3271cf8 |
child | 7362:032fcb7b80a1 |
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua Fri Apr 15 18:03:55 2016 +0200 +++ b/plugins/muc/muc.lib.lua Sun Apr 17 22:09:44 2016 +0200 @@ -1235,6 +1235,14 @@ }, room_mt); end +function room_mt:freeze() + return { + jid = self.jid; + _data = self._data; + _affiliations = self._affiliations; + } +end + _M.room_mt = room_mt; return _M;