core.stanza_router: Allow routing from components

Sat, 21 Mar 2009 21:42:14 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 21 Mar 2009 21:42:14 +0000
changeset 898
8176d224208a
parent 897
aeb05598dec1
child 899
b95368f199a1

core.stanza_router: Allow routing from components

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Fri Mar 20 20:17:05 2009 +0000
+++ b/core/stanza_router.lua	Sat Mar 21 21:42:14 2009 +0000
@@ -97,7 +97,7 @@
 	end]] -- FIXME
 
 	-- FIXME do stanzas not of jabber:client get handled by components?
-	if (origin.type == "s2sin" or origin.type == "c2s") and (not xmlns or xmlns == "jabber:server" or xmlns == "jabber:client") then			
+	if (origin.type == "s2sin" or origin.type == "c2s" or origin.type == "component") and (not xmlns or xmlns == "jabber:server" or xmlns == "jabber:client") then			
 		if origin.type == "s2sin" and not origin.dummy then
 			local host_status = origin.hosts[from_host];
 			if not host_status or not host_status.authed then -- remote server trying to impersonate some other server?

mercurial