core/stanza_router.lua

changeset 1412
6cfcab7cd4e7
parent 1411
b12096b69f36
child 1413
b7e17efe433e
--- a/core/stanza_router.lua	Thu Jun 25 08:15:42 2009 +0500
+++ b/core/stanza_router.lua	Thu Jun 25 08:17:02 2009 +0500
@@ -182,8 +182,7 @@
 	origin = origin or hosts[from_host];
 	if not origin then return false; end
 	
-	local host_session = hosts[host]
-	if host_session and host_session.type == "local" then
+	if hosts[host] then
 		-- old stanza routing code removed
 		core_post_stanza(origin, stanza);
 	elseif origin.type == "c2s" then

mercurial