From 0d54b3f88f03b0c89467ca10ba96fdf0344ee72d Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Mon, 29 Jun 2009 13:15:09 +0500 Subject: stanza_router: Don't fire preprocessing events if stanza is not from full JID --- core/stanza_router.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/stanza_router.lua') 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]; -- cgit v1.2.3