stanza_router: Don't route before firing events... waqas, is this safe?

Sun, 31 May 2009 22:52:50 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 31 May 2009 22:52:50 +0100
changeset 1258
01b69efffb1c
parent 1257
8c9f20d3a17f
child 1261
497178e0ddbe

stanza_router: Don't route before firing events... waqas, is this safe?

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- a/core/stanza_router.lua	Sun May 31 21:36:12 2009 +0100
+++ b/core/stanza_router.lua	Sun May 31 22:52:50 2009 +0100
@@ -165,9 +165,6 @@
 		else
 			if (h.events or prosody.events).fire_event(stanza.name..to_type, event_data) then return; end -- do processing
 		end
-	else -- non-local recipient
-		core_route_stanza(origin, stanza);
-		return;
 	end
 
 	if host and fire_event(host.."/"..stanza.name, event_data) then

mercurial