componentmanager: Let the default component handler handle stanzas if a component handler isn't available.

Sun, 18 Oct 2009 01:52:37 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Sun, 18 Oct 2009 01:52:37 +0500
changeset 1990
b7fff80908b6
parent 1989
97c3236cc4ac
child 1991
ed4cd15bf4dd

componentmanager: Let the default component handler handle stanzas if a component handler isn't available.

core/componentmanager.lua file | annotate | diff | comparison | revisions
--- a/core/componentmanager.lua	Sun Oct 18 01:40:18 2009 +0500
+++ b/core/componentmanager.lua	Sun Oct 18 01:52:37 2009 +0500
@@ -67,6 +67,7 @@
 		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
 

mercurial