Thu, 25 Jun 2009 08:17:02 +0500
stanza_router: A little refactoring
core/stanza_router.lua | file | annotate | diff | comparison | revisions |
--- 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