From 1b1f622cd24777f63d0cc100ab6dfe28e0ca6cdb Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 9 Dec 2010 21:11:12 +0500 Subject: hostmanager: activate() now gets the host config from configmanager when a config isn't given. --- core/hostmanager.lua | 1 + 1 file changed, 1 insertion(+) 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 = {}; -- cgit v1.2.3