Changeset

1990:b7fff80908b6

componentmanager: Let the default component handler handle stanzas if a component handler isn't available.
author Waqas Hussain <waqas20@gmail.com>
date Sun, 18 Oct 2009 01:52:37 +0500
parents 1989:97c3236cc4ac
children 1991:ed4cd15bf4dd
files core/componentmanager.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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