Merge 0.9->0.10 again
[prosody.git] / plugins / mod_s2s / mod_s2s.lua
index f9165f20288f7b21a9e3b918c9aed15fffa38c54..a58c64213817e8d1a27adb96d8accadb5b857608 100644 (file)
@@ -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