Software /
code /
prosody
Diff
core/hostmanager.lua @ 2877:1edeb8fe7d14
Merge 0.6.2/waqas with 0.6.2/MattJ
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 03 Mar 2010 22:05:05 +0000 |
parent | 2767:473627393d40 |
parent | 2855:66a1aa0bedc0 |
child | 2923:b7049746bd29 |
line wrap: on
line diff
--- a/core/hostmanager.lua Fri Feb 19 03:30:27 2010 +0000 +++ b/core/hostmanager.lua Wed Mar 03 22:05:05 2010 +0000 @@ -33,12 +33,19 @@ local function load_enabled_hosts(config) local defined_hosts = config or configmanager.getconfig(); + local activated_any_host; for host, host_config in pairs(defined_hosts) do if host ~= "*" and (host_config.core.enabled == nil or host_config.core.enabled) and not host_config.core.component_module then + activated_any_host = true; activate(host, host_config); end end + + if not activated_any_host then + log("error", "No hosts defined in the config file. This may cause unexpected behaviour as no modules will be loaded."); + end + eventmanager.fire_event("hosts-activated", defined_hosts); hosts_loaded_once = true; end