stanza_router: Fix syntax errors

Fri, 29 May 2009 22:11:44 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Fri, 29 May 2009 22:11:44 +0100
changeset 1230
53555f58586f
parent 1229
331a68645f67
child 1235
be8b51a8ab03

stanza_router: Fix syntax errors

core/stanza_router.lua file | annotate | diff | comparison | revisions
--- 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);

mercurial