Diff

plugins/mod_s2s/mod_s2s.lua @ 6608:b6e558febb7a

Merge with merge merge merge
author Matthew Wild <mwild1@gmail.com>
date Fri, 27 Mar 2015 22:19:44 +0000
parent 6607:64e6b88b6b21
parent 6602:61b6a4fc65f1
child 6626:071611bc4f1d
child 6630:6735e2d735d6
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua	Fri Mar 27 22:11:58 2015 +0000
+++ b/plugins/mod_s2s/mod_s2s.lua	Fri Mar 27 22:19:44 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