diff options
author | Kim Alvefur <zash@zash.se> | 2012-05-14 17:58:51 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-05-14 17:58:51 +0200 |
commit | 1ef9002349617281dd0ea8de565ba07b0d712073 (patch) | |
tree | f1a21a2f0d1c4c04aacb1665e81cf4acbef9f351 | |
parent | 17729a0e3b03482231f09164ce9ac1fe4984715b (diff) | |
download | prosody-1ef9002349617281dd0ea8de565ba07b0d712073.tar.gz prosody-1ef9002349617281dd0ea8de565ba07b0d712073.zip |
prosody, stanza_router: Load stanza_router earlier. Put routing functions in the global prosody table. Fixes module:send()
-rw-r--r-- | core/stanza_router.lua | 3 | ||||
-rwxr-xr-x | prosody | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 50044766..6e8ac6b3 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -204,3 +204,6 @@ function core_route_stanza(origin, stanza) end end end +prosody.core_process_stanza = core_process_stanza; +prosody.core_post_stanza = core_post_stanza; +prosody.core_route_stanza = core_route_stanza; @@ -279,12 +279,12 @@ function load_secondary_libraries() require "util.import" require "util.xmppstream" require "core.rostermanager" + require "core.stanza_router" require "core.hostmanager" require "core.portmanager" require "core.modulemanager" require "core.usermanager" require "core.sessionmanager" - require "core.stanza_router" package.loaded['core.componentmanager'] = setmetatable({},{__index=function() log("warn", "componentmanager is deprecated: %s", debug.traceback():match("\n[^\n]*\n[ \t]*([^\n]*)")); return function() end |