From afe32590a124663f31b680cce0dd3bfc14f34c4b Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 30 Sep 2009 11:03:11 +0100 Subject: componentmanager: Fire event on component activation --- core/componentmanager.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/componentmanager.lua') diff --git a/core/componentmanager.lua b/core/componentmanager.lua index a17d4091..208f42e4 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -14,6 +14,7 @@ local configmanager = require "core.configmanager"; 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 @@ function load_enabled_components(config) 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 -- cgit v1.2.3