Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 3577:2cc135cba25b
MUC: Preserve the global rooms table through reloads.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Tue, 09 Nov 2010 01:19:17 +0500 |
parent | 3576:8d8ce17b83ca |
child | 3589:1792610e169e |
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua Tue Nov 09 01:07:39 2010 +0500 +++ b/plugins/muc/mod_muc.lua Tue Nov 09 01:19:17 2010 +0500 @@ -178,7 +178,6 @@ return {rooms = rooms}; end module.restore = function(data) - rooms = {}; for jid, oldroom in pairs(data.rooms or {}) do local room = muc_new_room(jid); room._jid_nick = oldroom._jid_nick;