diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-12-09 21:11:12 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-12-09 21:11:12 +0500 |
commit | e8fa3940a7d6cf962170b37d8897a8217f87bafe (patch) | |
tree | ffe97c4af094eb15c922b3c6a8c11932a303a896 /core/hostmanager.lua | |
parent | e3a8fa54c027a6d8e87f67cdd134e608f76c76e4 (diff) | |
download | prosody-e8fa3940a7d6cf962170b37d8897a8217f87bafe.tar.gz prosody-e8fa3940a7d6cf962170b37d8897a8217f87bafe.zip |
hostmanager: activate() now gets the host config from configmanager when a config isn't given.
Diffstat (limited to 'core/hostmanager.lua')
-rw-r--r-- | core/hostmanager.lua | 1 |
1 files changed, 1 insertions, 0 deletions
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 = {}; |