diff options
author | Kim Alvefur <zash@zash.se> | 2015-03-27 00:27:29 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2015-03-27 00:27:29 +0100 |
commit | 9ec7962a94e3f7366effff95755cab2099fa8fea (patch) | |
tree | be7cc75b1f7dba7e6b881c22d277c0f79401261f /plugins/mod_s2s | |
parent | 45e1b4d1da5e5c9825e23368d8de92c4c5c390de (diff) | |
parent | 382cb50f5196dd4a935a09f5515904820a3ea286 (diff) | |
download | prosody-9ec7962a94e3f7366effff95755cab2099fa8fea.tar.gz prosody-9ec7962a94e3f7366effff95755cab2099fa8fea.zip |
Merge 0.9->0.10 again
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index f9165f20..a58c6421 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -499,6 +499,12 @@ function session_stream_attrs(session, from, to, attr) 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 |