Software /
code /
prosody
Diff
core/stanza_router.lua @ 1230:53555f58586f
stanza_router: Fix syntax errors
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 29 May 2009 22:11:44 +0100 |
parent | 1228:853d3d76ba94 |
child | 1244:3df7417225fe |
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);