From d097fa5bf92373df1de2270c26491f983cd76137 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sat, 16 May 2009 02:07:27 +0500 Subject: Dropped support for resource based components --- core/stanza_router.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'core/stanza_router.lua') diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 1640e0ed..2413b2cc 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -116,8 +116,6 @@ function core_process_stanza(origin, stanza) modules_handle_stanza(host or origin.host or origin.to_host, origin, stanza); elseif hosts[to] and hosts[to].type == "local" then -- directed at a local server modules_handle_stanza(host or origin.host or origin.to_host, origin, stanza); - elseif hosts[to] and hosts[to].type == "component" then -- hack to allow components to handle node@server/resource and server/resource - component_handle_stanza(origin, stanza); elseif hosts[to_bare] and hosts[to_bare].type == "component" then -- hack to allow components to handle node@server component_handle_stanza(origin, stanza); elseif hosts[host] and hosts[host].type == "component" then -- directed at a component @@ -148,9 +146,7 @@ function core_route_stanza(origin, stanza) origin = origin or hosts[from_host]; if not origin then return false; end - if hosts[to] and hosts[to].type == "component" then -- hack to allow components to handle node@server/resource and server/resource - return component_handle_stanza(origin, stanza); - elseif hosts[to_bare] and hosts[to_bare].type == "component" then -- hack to allow components to handle node@server + 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); -- cgit v1.2.3