--- 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");