67 local component = nil; |
67 local component = nil; |
68 if not component then component = components[stanza.attr.to]; end -- hack to allow hooking node@server/resource and server/resource |
68 if not component then component = components[stanza.attr.to]; end -- hack to allow hooking node@server/resource and server/resource |
69 if not component then component = components[node.."@"..host]; end -- hack to allow hooking node@server |
69 if not component then component = components[node.."@"..host]; end -- hack to allow hooking node@server |
70 if not component then component = components[host]; end |
70 if not component then component = components[host]; end |
71 if component then |
71 if component then |
72 log("debug", "stanza being handled by component: "..host); |
72 log("debug", "%s stanza being handled by component: %s", stanza.name, host); |
73 component(origin, stanza, hosts[host]); |
73 component(origin, stanza, hosts[host]); |
74 else |
74 else |
75 log("error", "Component manager recieved a stanza for a non-existing component: " .. stanza.attr.to); |
75 log("error", "Component manager recieved a stanza for a non-existing component: " .. stanza.attr.to); |
76 end |
76 end |
77 end |
77 end |