diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-09-11 16:20:49 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-09-11 16:20:49 +0500 |
commit | 47f75e2f54d91c1794faccea6ee70404e59b54d2 (patch) | |
tree | ebdb587b38e745ed6f5f6fa3137b78a834459268 | |
parent | 626df97d77ac7c933b988d2741c0b8627ba0d30a (diff) | |
download | prosody-47f75e2f54d91c1794faccea6ee70404e59b54d2.tar.gz prosody-47f75e2f54d91c1794faccea6ee70404e59b54d2.zip |
ComponentManager: Fixed: Default handler sent error replies on result stanzas.
-rw-r--r-- | core/componentmanager.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |