stanza_router: Skip prepping 'from' on c2s origins - #optimization

2009-06-20

author
Waqas Hussain <waqas20@gmail.com>
date
Sat Jun 20 18:08:57 2009 +0500
changeset 1369
633e032a3b4b
parent 1368
0cb70958b8fb
child 1370
3a467e6885f0

stanza_router: Skip prepping 'from' on c2s origins - #optimization

core/stanza_router.lua file | annotate | diff | revisions
     1.1 --- a/core/stanza_router.lua	Sat Jun 20 17:53:39 2009 +0500
     1.2 +++ b/core/stanza_router.lua	Sat Jun 20 18:08:57 2009 +0500
     1.3 @@ -78,7 +78,7 @@
     1.4  		if resource then to = to_bare.."/"..resource; else to = to_bare; end
     1.5  		stanza.attr.to = to;
     1.6  	end
     1.7 -	if from then
     1.8 +	if from and not origin.full_jid then
     1.9  		-- We only stamp the 'from' on c2s stanzas, so we still need to check validity
    1.10  		from_node, from_host, from_resource = jid_prepped_split(from);
    1.11  		if not from_host then

mercurial