diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-11-09 01:07:39 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-11-09 01:07:39 +0500 |
commit | 71531236201f61190bc9629ff7bd3f63d5b8a79c (patch) | |
tree | 5130d74ee264eec0bfd10f3d8b1dad89087c9c4d /plugins | |
parent | eadfb06d3b586a61451d17cdb7bd35290aede129 (diff) | |
download | prosody-71531236201f61190bc9629ff7bd3f63d5b8a79c.tar.gz prosody-71531236201f61190bc9629ff7bd3f63d5b8a79c.zip |
MUC: Expose the rooms table as a global 'rooms'.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/muc/mod_muc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index f1d3b24f..e7c572a3 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -32,7 +32,8 @@ local uuid_gen = require "util.uuid".generate; 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; |