Software /
code /
prosody
Diff
plugins/muc/mod_muc.lua @ 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 |
parent | 3604:3e89f0509967 |
child | 3675:cd3a1ae596b4 |
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");