aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-09-30 11:03:11 +0100
committerMatthew Wild <mwild1@gmail.com>2009-09-30 11:03:11 +0100
commitafe32590a124663f31b680cce0dd3bfc14f34c4b (patch)
tree02d279c97708400d6c97e0dc28fa18cfe29f775a
parent955ff89a519865808714c89025645c225df1637c (diff)
downloadprosody-afe32590a124663f31b680cce0dd3bfc14f34c4b.tar.gz
prosody-afe32590a124663f31b680cce0dd3bfc14f34c4b.zip
componentmanager: Fire event on component activation
-rw-r--r--core/componentmanager.lua2
1 files changed, 2 insertions, 0 deletions
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