Software /
code /
prosody
Changeset
639:38cb21431257
Automated merge with http://waqas.ath.cx:8000/
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 24 Dec 2008 23:19:48 +0000 |
parents | 638:1915c64c9436 (diff) 637:30b8ad9f7b70 (current diff) |
children | 644:e1b3a472ca00 |
files | |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/core/componentmanager.lua Wed Dec 24 18:48:09 2008 +0000 +++ b/core/componentmanager.lua Wed Dec 24 23:19:48 2008 +0000 @@ -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]);