diff options
Diffstat (limited to 'core/stanza_router.lua')
-rw-r--r-- | core/stanza_router.lua | 3 |
1 files changed, 3 insertions, 0 deletions
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 |