Changeset

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
parents 3836:2c4535e13f23
children 3838:3f95997bb2ff
files core/hostmanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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 = {};