diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-05-15 06:31:32 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-05-15 06:31:32 +0500 |
commit | d996755860a82374cccae4972a1b40cb295792ad (patch) | |
tree | 9cf101af40b5b405ce7d2efaf022cd0d82ec7339 /core/stanza_router.lua | |
parent | 5876adcc5e0d8700730ac6115fd30868836d6320 (diff) | |
download | prosody-d996755860a82374cccae4972a1b40cb295792ad.tar.gz prosody-d996755860a82374cccae4972a1b40cb295792ad.zip |
stanza_router: Prevent further processing of a handled stanza
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r-- | core/stanza_router.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua index eb5bf410..cb76b29c 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -109,7 +109,7 @@ function core_process_stanza(origin, stanza) -- FIXME do stanzas not of jabber:client get handled by components? if (origin.type == "s2sin" or origin.type == "c2s" or origin.type == "component") and (not xmlns or xmlns == "jabber:server" or xmlns == "jabber:client") then local event_data = {origin=origin, stanza=stanza}; - fire_event(tostring(host or origin.host).."/"..stanza.name, event_data); + if fire_event(tostring(host or origin.host).."/"..stanza.name, event_data) then return; end if origin.type == "s2sin" and not origin.dummy then local host_status = origin.hosts[from_host]; if not host_status or not host_status.authed then -- remote server trying to impersonate some other server? |