Comparison

plugins/muc/mod_muc.lua @ 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
parent 3575:bc3dfc00da5d
child 3577:2cc135cba25b
comparison
equal deleted inserted replaced
3575:bc3dfc00da5d 3576:8d8ce17b83ca
30 local st = require "util.stanza"; 30 local st = require "util.stanza";
31 local uuid_gen = require "util.uuid".generate; 31 local uuid_gen = require "util.uuid".generate;
32 local datamanager = require "util.datamanager"; 32 local datamanager = require "util.datamanager";
33 local um_is_admin = require "core.usermanager".is_admin; 33 local um_is_admin = require "core.usermanager".is_admin;
34 34
35 local rooms = {}; 35 rooms = {};
36 local rooms = rooms;
36 local persistent_rooms = datamanager.load(nil, muc_host, "persistent") or {}; 37 local persistent_rooms = datamanager.load(nil, muc_host, "persistent") or {};
37 local component; 38 local component;
38 39
39 -- Configurable options 40 -- Configurable options
40 local max_history_messages = module:get_option_number("max_history_messages"); 41 local max_history_messages = module:get_option_number("max_history_messages");