From 2753815a11b9964e0fa4d2eb4dcc4e0df3c701c0 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sat, 20 Jun 2009 18:08:57 +0500 Subject: stanza_router: Skip prepping 'from' on c2s origins - #optimization --- core/stanza_router.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/stanza_router.lua b/core/stanza_router.lua index a28110d5..03035e8e 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -78,7 +78,7 @@ function core_process_stanza(origin, stanza) if resource then to = to_bare.."/"..resource; else to = to_bare; end stanza.attr.to = to; end - if from then + if from and not origin.full_jid then -- We only stamp the 'from' on c2s stanzas, so we still need to check validity from_node, from_host, from_resource = jid_prepped_split(from); if not from_host then -- cgit v1.2.3