Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 7350:24e2369b67f9
MUC: Move history to room._history
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 12 Apr 2016 19:35:55 +0200 |
parent | 7269:cde4ef90cf3d |
child | 7359:a5a080c12c96 |
child | 7360:7a37fade5380 |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Fri Apr 08 17:54:50 2016 +0200 +++ b/plugins/muc/mod_muc.lua Tue Apr 12 19:35:55 2016 +0200 @@ -102,15 +102,12 @@ local is_persistent = persistent.get(room); persistent_rooms:set(nil, room.jid, is_persistent); if is_persistent then - local room_history = room._data.history; - room._data.history = nil; local data = { jid = room.jid; _data = room._data; _affiliations = room._affiliations; }; room_configs:set(node, data); - room._data.history = room_history; elseif forced then room_configs:set(node, nil); if not next(room._occupants) then -- Room empty