Changeset

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
parents 3627:9e62937c9757
children 3629:856e42b38bb0
files plugins/muc/mod_muc.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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");