Diff

core/stanza_router.lua @ 1258:01b69efffb1c

stanza_router: Don't route before firing events... waqas, is this safe?
author Matthew Wild <mwild1@gmail.com>
date Sun, 31 May 2009 22:52:50 +0100
parent 1256:98f0e9eadf3b
child 1263:7797354dc9b5
line wrap: on
line diff
--- 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