# HG changeset patch # User Waqas Hussain # Date 1289935111 -18000 # Node ID 576103409c7a4209c1d0c50b86d6fa4525fa8a22 # Parent 9e62937c9757484192deeebf6742a3205896b7ff MUC: Fixed: Variable referencing the host session wasn't initialized. diff -r 9e62937c9757 -r 576103409c7a plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Tue Nov 16 13:30:27 2010 +0000 +++ b/plugins/muc/mod_muc.lua Wed Nov 17 00:18:31 2010 +0500 @@ -33,7 +33,7 @@ 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");