Changeset

4877:6f5b53cb3565

prosody, stanza_router: Load stanza_router earlier. Put routing functions in the global prosody table. Fixes module:send()
author Kim Alvefur <zash@zash.se>
date Mon, 14 May 2012 17:58:51 +0200
parents 4876:fa41d05ee7ef
children 4878:80ab7c50608d
files core/stanza_router.lua prosody
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/stanza_router.lua	Sun May 13 22:58:25 2012 +0100
+++ b/core/stanza_router.lua	Mon May 14 17:58:51 2012 +0200
@@ -204,3 +204,6 @@
 		end
 	end
 end
+prosody.core_process_stanza = core_process_stanza;
+prosody.core_post_stanza = core_post_stanza;
+prosody.core_route_stanza = core_route_stanza;
--- a/prosody	Sun May 13 22:58:25 2012 +0100
+++ b/prosody	Mon May 14 17:58:51 2012 +0200
@@ -279,12 +279,12 @@
 	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