aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-12-25 04:27:19 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-12-25 04:27:19 +0500
commitbc031ae346c3f05743c1922ba614a768c0160021 (patch)
treeb0847af1927551417b224191df15fd815ec380c9
parent483f3cd6d6eb2b8591f0cff404b78e6f88cf4987 (diff)
downloadprosody-bc031ae346c3f05743c1922ba614a768c0160021.tar.gz
prosody-bc031ae346c3f05743c1922ba614a768c0160021.zip
Changed order of checking for component hosts to check the full and bare JIDs before the hostname (at another place)
-rw-r--r--core/stanza_router.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 37e8f176..2fef1e34 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -99,10 +99,10 @@ function core_process_stanza(origin, stanza)
core_handle_stanza(origin, stanza);
elseif stanza.attr.xmlns and stanza.attr.xmlns ~= "jabber:client" and stanza.attr.xmlns ~= "jabber:server" then
modules_handle_stanza(host or origin.host or origin.to_host, 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[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
component_handle_stanza(origin, stanza);
elseif origin.type == "c2s" and stanza.name == "presence" and stanza.attr.type ~= nil and stanza.attr.type ~= "unavailable" then