Changeset

1230:53555f58586f

stanza_router: Fix syntax errors
author Matthew Wild <mwild1@gmail.com>
date Fri, 29 May 2009 22:11:44 +0100
parents 1229:331a68645f67
children 1235:be8b51a8ab03
files core/stanza_router.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/core/stanza_router.lua	Fri May 29 22:06:21 2009 +0100
+++ b/core/stanza_router.lua	Fri May 29 22:11:44 2009 +0100
@@ -141,7 +141,7 @@
 
 	local event_data = {origin=origin, stanza=stanza};
 	if origin.full_jid then -- c2s connection
-		if hosts[origin.host].events.fire_event('pre-'..stanza.name..to_type, event_data); then return; end -- do preprocessing
+		if hosts[origin.host].events.fire_event('pre-'..stanza.name..to_type, event_data) then return; end -- do preprocessing
 	end
 	local h = hosts[to_bare] or hosts[host or origin.host];
 	if h then
@@ -149,7 +149,7 @@
 			component_handle_stanza(origin, stanza);
 			return;
 		else
-			if h.events.fire_event(stanza.name..to_type, event_data); then return; end -- do processing
+			if h.events.fire_event(stanza.name..to_type, event_data) then return; end -- do processing
 		end
 	else -- non-local recipient
 		core_route_stanza(origin, stanza);