Software /
code /
prosody
Comparison
core/hostmanager.lua @ 749:1359492f45d7
hostmanager: Fire event when all hosts are loaded from config
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 29 Jan 2009 02:09:53 +0000 |
parent | 575:428c951d0a33 |
child | 1095:cad4205f4925 |
comparison
equal
deleted
inserted
replaced
748:172c43d735e9 | 749:1359492f45d7 |
---|---|
15 for host, host_config in pairs(defined_hosts) do | 15 for host, host_config in pairs(defined_hosts) do |
16 if host ~= "*" and (host_config.core.enabled == nil or host_config.core.enabled) then | 16 if host ~= "*" and (host_config.core.enabled == nil or host_config.core.enabled) then |
17 activate(host, host_config); | 17 activate(host, host_config); |
18 end | 18 end |
19 end | 19 end |
20 eventmanager.fire_event("hosts-activated", defined_hosts); | |
20 end | 21 end |
21 | 22 |
22 eventmanager.add_event_hook("server-starting", load_enabled_hosts); | 23 eventmanager.add_event_hook("server-starting", load_enabled_hosts); |
23 | 24 |
24 function activate(host, host_config) | 25 function activate(host, host_config) |