# HG changeset patch # User Matthew Wild # Date 1243631504 -3600 # Node ID 53555f58586f0f0d31a3761d500f900f35e4de93 # Parent 331a68645f675f27cbdf1a4967785e4fc43cdb93 stanza_router: Fix syntax errors diff -r 331a68645f67 -r 53555f58586f core/stanza_router.lua --- 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);