# HG changeset patch # User Waqas Hussain # Date 1245899822 -18000 # Node ID 6cfcab7cd4e7eb85cc63a8075f225899902e1dab # Parent b12096b69f364b6a15751f1308403445cc36c1ae stanza_router: A little refactoring diff -r b12096b69f36 -r 6cfcab7cd4e7 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