aboutsummaryrefslogtreecommitdiffstats
path: root/core/componentmanager.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-09-11 16:20:49 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-09-11 16:20:49 +0500
commit47f75e2f54d91c1794faccea6ee70404e59b54d2 (patch)
treeebdb587b38e745ed6f5f6fa3137b78a834459268 /core/componentmanager.lua
parent626df97d77ac7c933b988d2741c0b8627ba0d30a (diff)
downloadprosody-47f75e2f54d91c1794faccea6ee70404e59b54d2.tar.gz
prosody-47f75e2f54d91c1794faccea6ee70404e59b54d2.zip
ComponentManager: Fixed: Default handler sent error replies on result stanzas.
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r--core/componentmanager.lua2
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