diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-20 14:38:22 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-20 14:38:22 +0500 |
commit | 50c7a5297cc2fea88ddf9d3ba944546d12383500 (patch) | |
tree | 5ae367228d54f568b34e4eb9a85d545c39b16f6d /core/componentmanager.lua | |
parent | d27940fd2fe09daf1ce82797e0621ed31a19d1ca (diff) | |
download | prosody-50c7a5297cc2fea88ddf9d3ba944546d12383500.tar.gz prosody-50c7a5297cc2fea88ddf9d3ba944546d12383500.zip |
componentmanager: Using prosody.events instead of core.eventmanager
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r-- | core/componentmanager.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua index fe4a6999..eb18fced 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -8,10 +8,9 @@ - +local prosody = prosody; local log = require "util.logger".init("componentmanager"); local configmanager = require "core.configmanager"; -local eventmanager = require "core.eventmanager"; local modulemanager = require "core.modulemanager"; local core_route_stanza = core_route_stanza; local jid_split = require "util.jid".split; @@ -34,7 +33,7 @@ require "core.discomanager".addDiscoItemsHandler("*host", function(reply, to, fr end end); -require "core.eventmanager".add_event_hook("server-starting", function () core_route_stanza = _G.core_route_stanza; end); +prosody.events.add_handler("server-starting", function () core_route_stanza = _G.core_route_stanza; end); module "componentmanager" @@ -63,7 +62,7 @@ function load_enabled_components(config) end end -eventmanager.add_event_hook("server-starting", load_enabled_components); +prosody.events.add_handler("server-starting", load_enabled_components); function handle_stanza(origin, stanza) local node, host = jid_split(stanza.attr.to); |