core/stanza_router.lua

changeset 1609
95d3bcd82334
parent 1523
841d61be198f
child 1887
e3c790060c03
child 1899
ccb7d9ccbf24
--- 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

mercurial