diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-06-25 08:17:02 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-06-25 08:17:02 +0500 |
commit | d87a664b7e926a78f73e68ae8bc649b2be7902c7 (patch) | |
tree | e6c000fde9a77419b2baf52375b48474b3c66ad8 /core | |
parent | edb012e99ff1de8ecf7c188fa69c69933eb199a1 (diff) | |
download | prosody-d87a664b7e926a78f73e68ae8bc649b2be7902c7.tar.gz prosody-d87a664b7e926a78f73e68ae8bc649b2be7902c7.zip |
stanza_router: A little refactoring
Diffstat (limited to 'core')
-rw-r--r-- | core/stanza_router.lua | 3 |
1 files changed, 1 insertions, 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 |