From aa9369309a6fc4f00251f65aca8624a18713d7f3 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 17 Nov 2010 00:18:31 +0500 Subject: MUC: Fixed: Variable referencing the host session wasn't initialized. --- plugins/muc/mod_muc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/muc/mod_muc.lua b/plugins/muc/mod_muc.lua index 22d2664d..e49486fc 100644 --- a/plugins/muc/mod_muc.lua +++ b/plugins/muc/mod_muc.lua @@ -33,7 +33,7 @@ local um_is_admin = require "core.usermanager".is_admin; rooms = {}; local rooms = rooms; local persistent_rooms = datamanager.load(nil, muc_host, "persistent") or {}; -local component; +local component = hosts[module.host]; -- Configurable options local max_history_messages = module:get_option_number("max_history_messages"); -- cgit v1.2.3