aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-29 13:15:09 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-29 13:15:09 +0500
commit0d54b3f88f03b0c89467ca10ba96fdf0344ee72d (patch)
tree80f526c27dd65d3ecabeb8e121edc14144cb7c10
parent7422c11cfa3619fe768daf8e8e076ec6ef35823f (diff)
downloadprosody-0d54b3f88f03b0c89467ca10ba96fdf0344ee72d.tar.gz
prosody-0d54b3f88f03b0c89467ca10ba96fdf0344ee72d.zip
stanza_router: Don't fire preprocessing events if stanza is not from full JID
-rw-r--r--core/stanza_router.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/stanza_router.lua b/core/stanza_router.lua
index 9d7bb36a..8285e667 100644
--- a/core/stanza_router.lua
+++ b/core/stanza_router.lua
@@ -139,7 +139,7 @@ function core_post_stanza(origin, stanza)
end
local event_data = {origin=origin, stanza=stanza};
- if origin.full_jid then -- c2s connection
+ if origin.full_jid == stanza.attr.from then -- c2s connection
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];