aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-05-29 22:11:44 +0100
committerMatthew Wild <mwild1@gmail.com>2009-05-29 22:11:44 +0100
commit175256488b9b8d4f39668e515213b9fe7af261b6 (patch)
treec665f4f6add111218a0e5dae5d29636806c49f85 /core/stanza_router.lua
parent820e322c2a64bc0162d45e32c287497336ea1314 (diff)
downloadprosody-175256488b9b8d4f39668e515213b9fe7af261b6.tar.gz
prosody-175256488b9b8d4f39668e515213b9fe7af261b6.zip
stanza_router: Fix syntax errors
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r--core/stanza_router.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 35593b35..d4cbcd59 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -141,7 +141,7 @@ function core_post_stanza(origin, stanza)
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 @@ function core_post_stanza(origin, stanza)
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);