From b17e2aad5ba92853a26a6478a1a90cfc512c7ac1 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Wed, 3 Jun 2009 08:00:07 +0500 Subject: stanza_router: Remove the 'to' attribute when it's value is the bare JID of the local user sending the stanza --- core/stanza_router.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/stanza_router.lua b/core/stanza_router.lua index 8b98939b..097d34a8 100644 --- a/core/stanza_router.lua +++ b/core/stanza_router.lua @@ -149,6 +149,9 @@ function core_post_stanza(origin, stanza) to_type = '/full'; else to_type = '/bare'; + if node == origin.username and host == origin.host then + stanza.attr.to = nil; + end end else if host then -- cgit v1.2.3