# HG changeset patch # User Waqas Hussain # Date 1245503337 -18000 # Node ID 633e032a3b4b9f09906be49f4699b0d9a22b238b # Parent 0cb70958b8fb624079ad8da51b0f64e7a76bd51c stanza_router: Skip prepping 'from' on c2s origins - #optimization diff -r 0cb70958b8fb -r 633e032a3b4b core/stanza_router.lua --- a/core/stanza_router.lua Sat Jun 20 17:53:39 2009 +0500 +++ b/core/stanza_router.lua Sat Jun 20 18:08:57 2009 +0500 @@ -78,7 +78,7 @@ 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