hostmanager: Fire event when all hosts are loaded from config
authorMatthew Wild <mwild1@gmail.com>
Thu, 29 Jan 2009 02:09:53 +0000
changeset 749 1359492f45d7
parent 748 172c43d735e9
child 750 fbfcf8c1c830
hostmanager: Fire event when all hosts are loaded from config
core/hostmanager.lua
--- a/core/hostmanager.lua	Thu Jan 29 02:01:09 2009 +0000
+++ b/core/hostmanager.lua	Thu Jan 29 02:09:53 2009 +0000
@@ -17,6 +17,7 @@
 			activate(host, host_config);
 		end
 	end
+	eventmanager.fire_event("hosts-activated", defined_hosts);
 end
 
 eventmanager.add_event_hook("server-starting", load_enabled_hosts);