# HG changeset patch # User Waqas Hussain # Date 1230077413 -18000 # Node ID 1915c64c9436650bcb2393bfd6ff733e08e9b447 # Parent 6957fe7b0313117040609a006c7e5615d0d49851 Changed order of checking for component hosts to check the full and bare JIDs before the hostname diff -r 6957fe7b0313 -r 1915c64c9436 core/componentmanager.lua --- a/core/componentmanager.lua Fri Dec 19 01:57:13 2008 +0500 +++ b/core/componentmanager.lua Wed Dec 24 05:10:13 2008 +0500 @@ -31,9 +31,10 @@ function handle_stanza(origin, stanza) local node, host = jid_split(stanza.attr.to); - local component = components[host]; + local component = nil; + if not component then component = components[stanza.attr.to]; end -- hack to allow hooking node@server/resource and server/resource if not component then component = components[node.."@"..host]; end -- hack to allow hooking node@server - if not component then component = components[stanza.attr.to]; end -- hack to allow hooking node@server/resource and server/resource + if not component then component = components[host]; end if component then log("debug", "stanza being handled by component: "..host); component(origin, stanza, hosts[host]);