From 47f75e2f54d91c1794faccea6ee70404e59b54d2 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 11 Sep 2009 16:20:49 +0500 Subject: ComponentManager: Fixed: Default handler sent error replies on result stanzas. --- core/componentmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/componentmanager.lua b/core/componentmanager.lua index 086b9eab..3add43ec 100644 --- a/core/componentmanager.lua +++ b/core/componentmanager.lua @@ -29,7 +29,7 @@ module "componentmanager" 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 -- cgit v1.2.3