Changeset

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
parents 3576:8d8ce17b83ca
children 3578:410d2df8a824
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 0 insertions(+), 1 deletions(-) [+]
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;