Comparison

plugins/muc/mod_muc.lua @ 3628:576103409c7a

MUC: Fixed: Variable referencing the host session wasn't initialized.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 17 Nov 2010 00:18:31 +0500
parent 3604:3e89f0509967
child 3675:cd3a1ae596b4
comparison
equal deleted inserted replaced
3627:9e62937c9757 3628:576103409c7a
31 local um_is_admin = require "core.usermanager".is_admin; 31 local um_is_admin = require "core.usermanager".is_admin;
32 32
33 rooms = {}; 33 rooms = {};
34 local rooms = rooms; 34 local rooms = rooms;
35 local persistent_rooms = datamanager.load(nil, muc_host, "persistent") or {}; 35 local persistent_rooms = datamanager.load(nil, muc_host, "persistent") or {};
36 local component; 36 local component = hosts[module.host];
37 37
38 -- Configurable options 38 -- Configurable options
39 local max_history_messages = module:get_option_number("max_history_messages"); 39 local max_history_messages = module:get_option_number("max_history_messages");
40 40
41 local function is_admin(jid) 41 local function is_admin(jid)