aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-17 00:18:31 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-17 00:18:31 +0500
commitaa9369309a6fc4f00251f65aca8624a18713d7f3 (patch)
tree79508380f34057bc1b9edcee4caf673f7578f2a3 /plugins/muc
parent07243fc7d1fa26213c38130d30e26774a06ac018 (diff)
downloadprosody-aa9369309a6fc4f00251f65aca8624a18713d7f3.tar.gz
prosody-aa9369309a6fc4f00251f65aca8624a18713d7f3.zip
MUC: Fixed: Variable referencing the host session wasn't initialized.
Diffstat (limited to 'plugins/muc')
-rw-r--r--plugins/muc/mod_muc.lua2
1 files changed, 1 insertions, 1 deletions
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");