aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-25 08:13:21 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-25 08:13:21 +0500
commitb5c58a84a12aa8b0164a8ecc0d60827e465ad9f1 (patch)
tree259f0f2c3e93cf705eb1af891f43cc0f934edfdd /core
parente1fbd456301352b2d56cde29ad5b12c69528f5c8 (diff)
downloadprosody-b5c58a84a12aa8b0164a8ecc0d60827e465ad9f1.tar.gz
prosody-b5c58a84a12aa8b0164a8ecc0d60827e465ad9f1.zip
stanza_router: Remove even more old routing code
Diffstat (limited to 'core')
-rw-r--r--core/stanza_router.lua12
1 files changed, 0 insertions, 12 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index cd22cb6c..b00da57b 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -175,10 +175,6 @@ function core_post_stanza(origin, stanza)
end
function core_route_stanza(origin, stanza)
- -- Hooks
- --- ...later
-
- -- Deliver
local to = stanza.attr.to;
local node, host, resource = jid_split(to);
local to_bare = node and (node.."@"..host) or host; -- bare JID
@@ -190,14 +186,6 @@ function core_route_stanza(origin, stanza)
origin = origin or hosts[from_host];
if not origin then return false; end
- if hosts[to_bare] and hosts[to_bare].type == "component" then -- hack to allow components to handle node@server
- return component_handle_stanza(origin, stanza);
- elseif hosts[host] and hosts[host].type == "component" then -- directed at a component
- return component_handle_stanza(origin, stanza);
- end
-
- if stanza.name == "presence" and (stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" and stanza.attr.type ~= "error") then resource = nil; end
-
local host_session = hosts[host]
if host_session and host_session.type == "local" then
-- old stanza routing code removed