# HG changeset patch # User Waqas Hussain # Date 1243998007 -18000 # Node ID b18c1ad7fcb6cc3648218620e5d60e7862524496 # Parent d0c38cac1687252f059f0c2197f804c7fe80cd18 stanza_router: Remove the 'to' attribute when it's value is the bare JID of the local user sending the stanza diff -r d0c38cac1687 -r b18c1ad7fcb6 core/stanza_router.lua --- a/core/stanza_router.lua Tue Jun 02 21:22:24 2009 +0500 +++ b/core/stanza_router.lua Wed Jun 03 08:00:07 2009 +0500 @@ -149,6 +149,9 @@ 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