Software /
code /
prosody
Comparison
core/stanza_router.lua @ 1292:b18c1ad7fcb6
stanza_router: Remove the 'to' attribute when it's value is the bare JID of the local user sending the stanza
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Wed, 03 Jun 2009 08:00:07 +0500 |
parent | 1273:85353014ff34 |
child | 1294:39197fe5ae94 |
comparison
equal
deleted
inserted
replaced
1289:d0c38cac1687 | 1292:b18c1ad7fcb6 |
---|---|
147 if node then | 147 if node then |
148 if resource then | 148 if resource then |
149 to_type = '/full'; | 149 to_type = '/full'; |
150 else | 150 else |
151 to_type = '/bare'; | 151 to_type = '/bare'; |
152 if node == origin.username and host == origin.host then | |
153 stanza.attr.to = nil; | |
154 end | |
152 end | 155 end |
153 else | 156 else |
154 if host then | 157 if host then |
155 to_type = '/host'; | 158 to_type = '/host'; |
156 else | 159 else |