# HG changeset patch # User Waqas Hussain # Date 1291911072 -18000 # Node ID d7574530572cc9c4b517ed4a582fcb3c3bb9e2d8 # Parent f18515d2d10b5c48eb28ac605f243a420d2cc4cf hostmanager: activate() now gets the host config from configmanager when a config isn't given. diff -r f18515d2d10b -r d7574530572c core/hostmanager.lua --- 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 = {};