Changeset

1609:95d3bcd82334

Fixed: Possible duplicate error replies for unhandled stanzas
author Waqas Hussain <waqas20@gmail.com>
date Tue, 28 Jul 2009 00:42:56 +0500
parents 1608:fb53fe17af36
children 1610:07be0ac220d8 1612:0413aaf9edae
files core/stanza_router.lua
diffstat 1 files changed, 1 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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