aboutsummaryrefslogtreecommitdiffstats
path: root/core/componentmanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2010-11-10 02:51:36 +0500
committerWaqas Hussain <waqas20@gmail.com>2010-11-10 02:51:36 +0500
commite75ae6d76d77c2337f3dadfe667ecd517dbbad36 (patch)
treeb14a9c0dafba246858b550b540f226d1b7a48d84 /core/componentmanager.lua
parent3efbb4f224e49abf6767d8a6386617fda4c2fb10 (diff)
downloadprosody-e75ae6d76d77c2337f3dadfe667ecd517dbbad36.tar.gz
prosody-e75ae6d76d77c2337f3dadfe667ecd517dbbad36.zip
componentmanager, stanza_router: Get rid of componentmanager.handle_stanza().
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r--core/componentmanager.lua16
1 files changed, 0 insertions, 16 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua
index ea1fe868..f2f64a7d 100644
--- a/core/componentmanager.lua
+++ b/core/componentmanager.lua
@@ -57,22 +57,6 @@ if prosody and prosody.events then
prosody.events.add_handler("server-starting", load_enabled_components);
end
-function handle_stanza(origin, stanza)
- local node, host = jid_split(stanza.attr.to);
- local component = nil;
- if host then
- if node then component = components[node.."@"..host]; end -- hack to allow hooking node@server
- if not component then component = components[host]; end
- end
- if component then
- log("debug", "%s stanza being handled by component: %s", stanza.name, host);
- component(origin, stanza, hosts[host]);
- else
- log("error", "Component manager recieved a stanza for a non-existing component: "..tostring(stanza));
- default_component_handler(origin, stanza);
- end
-end
-
function create_component(host, component, events)
-- TODO check for host well-formedness
return { type = "component", host = host, connected = true, s2sout = {},