stanza_router: A little refactoring
authorWaqas Hussain <waqas20@gmail.com>
Thu, 25 Jun 2009 08:17:02 +0500
changeset 1412 6cfcab7cd4e7
parent 1411 b12096b69f36
child 1413 b7e17efe433e
stanza_router: A little refactoring
core/stanza_router.lua
--- 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