aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-12-09 21:11:12 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-12-09 21:11:12 +0500
commite8fa3940a7d6cf962170b37d8897a8217f87bafe (patch)
treeffe97c4af094eb15c922b3c6a8c11932a303a896
parente3a8fa54c027a6d8e87f67cdd134e608f76c76e4 (diff)
downloadprosody-e8fa3940a7d6cf962170b37d8897a8217f87bafe.tar.gz
prosody-e8fa3940a7d6cf962170b37d8897a8217f87bafe.zip
hostmanager: activate() now gets the host config from configmanager when a config isn't given.
-rw-r--r--core/hostmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/hostmanager.lua b/core/hostmanager.lua
index 9a5b2728..fddf1769 100644
--- a/core/hostmanager.lua
+++ b/core/hostmanager.lua
@@ -54,6 +54,7 @@ prosody_events.add_handler("server-starting", load_enabled_hosts);
function activate(host, host_config)
if hosts[host] then return nil, "host-already-exists"; end
+ host_config = host_config or configmanager.getconfig()[host];
local host_session = {
host = host;
s2sout = {};