# HG changeset patch # User Waqas Hussain # Date 1291911072 -18000 # Node ID 76a7ff5cce30a54c478d6d7ce253f5a488f354ab # Parent 2c4535e13f23bfef7c3930317e2414724e8e8735 hostmanager: activate() now gets the host config from configmanager when a config isn't given. diff -r 2c4535e13f23 -r 76a7ff5cce30 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 = {};