# HG changeset patch # User Waqas Hussain # Date 1248723776 -18000 # Node ID 95d3bcd82334fc5ecc9f3140d854baa457508e50 # Parent fb53fe17af363befd54cfede6d983cc13da96940 Fixed: Possible duplicate error replies for unhandled stanzas diff -r fb53fe17af36 -r 95d3bcd82334 core/stanza_router.lua --- a/core/stanza_router.lua Mon Jul 27 14:26:59 2009 +0100 +++ b/core/stanza_router.lua Tue Jul 28 00:42:56 2009 +0500 @@ -150,11 +150,7 @@ 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