diff options
author | Kim Alvefur <zash@zash.se> | 2016-04-17 22:09:44 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-04-17 22:09:44 +0200 |
commit | a92b3b499c6319f0510af1772c92ea6637a456af (patch) | |
tree | f4da662947e7ae0a5aa9fd715382a142608b96db /plugins/muc/muc.lib.lua | |
parent | bedf8e457aeae1f2f003a74de91adf3b8b214ac5 (diff) | |
download | prosody-a92b3b499c6319f0510af1772c92ea6637a456af.tar.gz prosody-a92b3b499c6319f0510af1772c92ea6637a456af.zip |
MUC: Move 'preserialization' step to muc.lib
Diffstat (limited to 'plugins/muc/muc.lib.lua')
-rw-r--r-- | plugins/muc/muc.lib.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 42a0af25..2026bc47 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -1235,6 +1235,14 @@ function _M.new_room(jid, config) -- luacheck: ignore 212 }, 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; |