Mercurial > prosody-hg
diff plugins/mod_s2s/mod_s2s.lua @ 6603:e702ae7aa3d9
Merge 0.10->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 26 Mar 2015 16:49:03 +0000 |
| parents | 61b6a4fc65f1 |
| children | b6e558febb7a |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Tue Mar 24 13:41:18 2015 +0000 +++ b/plugins/mod_s2s/mod_s2s.lua Thu Mar 26 16:49:03 2015 +0000 @@ -499,6 +499,12 @@ if not from or (hosts[from] and hosts[from].modules.dialback) then attr["xmlns:db"] = 'jabber:server:dialback'; end + if not from then + attr.from = ''; + end + if not to then + attr.to = ''; + end end -- Session initialization logic shared by incoming and outgoing
