core/componentmanager.lua

changeset 1773
f47aa1d336b5
parent 1772
c0ba9cd6ee63
child 1774
53bd9c9f3103
--- a/core/componentmanager.lua	Fri Sep 11 16:17:18 2009 +0500
+++ b/core/componentmanager.lua	Fri Sep 11 16:20:49 2009 +0500
@@ -29,7 +29,7 @@
 
 local function default_component_handler(origin, stanza)
 	log("warn", "Stanza being handled by default component, bouncing error");
-	if stanza.attr.type ~= "error" then
+	if stanza.attr.type ~= "error" and stanza.attr.type ~= "result" then
 		core_route_stanza(nil, st.error_reply(stanza, "wait", "service-unavailable", "Component unavailable"));
 	end
 end

mercurial