Software /
code /
prosody
Changeset
1850:8f1871c1d456
componentmanager: Fire event on component activation
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 30 Sep 2009 11:03:11 +0100 |
parents | 1849:5529d3c8eee7 |
children | 1851:0a4d4ba01db8 |
files | core/componentmanager.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/core/componentmanager.lua Wed Sep 30 11:02:31 2009 +0100 +++ b/core/componentmanager.lua Wed Sep 30 11:03:11 2009 +0100 @@ -14,6 +14,7 @@ local modulemanager = require "core.modulemanager"; local core_route_stanza = core_route_stanza; local jid_split = require "util.jid".split; +local fire_event = require "core.eventmanager".fire_event; local events_new = require "util.events".new; local st = require "util.stanza"; local hosts = hosts; @@ -58,6 +59,7 @@ if not ok then log("error", "Error loading %s component %s: %s", tostring(host_config.core.component_module), tostring(host), tostring(err)); else + fire_event("component-activated", host, host_config); log("debug", "Activated %s component: %s", host_config.core.component_module, host); end end