From d87a664b7e926a78f73e68ae8bc649b2be7902c7 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 25 Jun 2009 08:17:02 +0500 Subject: stanza_router: A little refactoring --- core/stanza_router.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/stanza_router.lua b/core/stanza_router.lua index d1f39733..632036d1 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -182,8 +182,7 @@ function core_route_stanza(origin, stanza) 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 -- cgit v1.2.3