aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-07-28 00:42:56 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-07-28 00:42:56 +0500
commit4b7aa0ca1f830e71ee4f043c6699d78e3123cd65 (patch)
treedc91ef536bb69e2849f0f93f828ec088c5151abd
parente37a04496dec4e1eaaef7dfcf99b7ee3327d3566 (diff)
downloadprosody-4b7aa0ca1f830e71ee4f043c6699d78e3123cd65.tar.gz
prosody-4b7aa0ca1f830e71ee4f043c6699d78e3123cd65.zip
Fixed: Possible duplicate error replies for unhandled stanzas
-rw-r--r--core/stanza_router.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 6dc4274b..dac098bb 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -150,11 +150,7 @@ function core_post_stanza(origin, stanza)
component_handle_stanza(origin, stanza);
return;
end
- if not modules_handle_stanza(h.host, origin, stanza) then
- if stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then
- origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
- end
- end
+ modules_handle_stanza(h.host, origin, stanza);
else
core_route_stanza(origin, stanza);
end