aboutsummaryrefslogtreecommitdiffstats
path: root/core/stanza_router.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-06-20 18:08:57 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-06-20 18:08:57 +0500
commit2753815a11b9964e0fa4d2eb4dcc4e0df3c701c0 (patch)
treeaa90a191dd14f90a1ad95698b6190aa0552c32e9 /core/stanza_router.lua
parentc0eca64393beb57de2e4482b81a87ffffbf213dc (diff)
downloadprosody-2753815a11b9964e0fa4d2eb4dcc4e0df3c701c0.tar.gz
prosody-2753815a11b9964e0fa4d2eb4dcc4e0df3c701c0.zip
stanza_router: Skip prepping 'from' on c2s origins - #optimization
Diffstat (limited to 'core/stanza_router.lua')
-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 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