Software /
code /
prosody
Changeset
5123:7c5c86fa552e
hostmanager, modulemanager: Ensure hosts[*].modules always exists.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 13 Sep 2012 00:32:12 +0500 |
parents | 5122:b41c33dc7c36 |
children | 5125:cdbc86b69ea2 |
files | core/hostmanager.lua core/modulemanager.lua |
diffstat | 2 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/core/hostmanager.lua Wed Sep 12 23:46:10 2012 +0500 +++ b/core/hostmanager.lua Thu Sep 13 00:32:12 2012 +0500 @@ -75,6 +75,7 @@ events = events_new(); dialback_secret = configmanager.get(host, "core", "dialback_secret") or uuid_gen(); send = host_send; + modules = {}; }; if not host_config.core.component_module then -- host host_session.type = "local";
--- a/core/modulemanager.lua Wed Sep 12 23:46:10 2012 +0500 +++ b/core/modulemanager.lua Thu Sep 13 00:32:12 2012 +0500 @@ -119,10 +119,7 @@ end if not modulemap[host] then - modulemap[host] = {}; - if host ~= "*" then - hosts[host].modules = modulemap[host]; - end + modulemap[host] = hosts[host].modules; end if modulemap[host][module_name] then