Software /
code /
prosody
Diff
core/hostmanager.lua @ 3837:76a7ff5cce30
hostmanager: activate() now gets the host config from configmanager when a config isn't given.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 09 Dec 2010 21:11:12 +0500 |
parent | 3601:829e23b374cc |
child | 3716:ebb2c6209e24 |
line wrap: on
line diff
--- a/core/hostmanager.lua Wed Dec 08 17:01:23 2010 +0000 +++ b/core/hostmanager.lua Thu Dec 09 21:11:12 2010 +0500 @@ -54,6 +54,7 @@ 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 = {};