Changeset

3576:8d8ce17b83ca

MUC: Expose the rooms table as a global 'rooms'.
author Waqas Hussain <waqas20@gmail.com>
date Tue, 09 Nov 2010 01:07:39 +0500
parents 3575:bc3dfc00da5d
children 3577:2cc135cba25b
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/mod_muc.lua	Mon Nov 08 20:44:53 2010 +0500
+++ b/plugins/muc/mod_muc.lua	Tue Nov 09 01:07:39 2010 +0500
@@ -32,7 +32,8 @@
 local datamanager = require "util.datamanager";
 local um_is_admin = require "core.usermanager".is_admin;
 
-local rooms = {};
+rooms = {};
+local rooms = rooms;
 local persistent_rooms = datamanager.load(nil, muc_host, "persistent") or {};
 local component;