Software /
code /
prosody
Changeset
1412:6cfcab7cd4e7
stanza_router: A little refactoring
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 25 Jun 2009 08:17:02 +0500 |
parents | 1411:b12096b69f36 |
children | 1413:b7e17efe433e |
files | core/stanza_router.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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