Fix the reversed to/from on the final db:result. Fixes M-Link and Gmail. Thanks dwd!!

Wed, 19 Nov 2008 23:18:12 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 19 Nov 2008 23:18:12 +0000
changeset 352
a73a5afd7da3
parent 351
b6c552bc5716
child 353
e7d776b5ebb9

Fix the reversed to/from on the final db:result. Fixes M-Link and Gmail. Thanks dwd!!

plugins/mod_dialback.lua file | annotate | diff | comparison | revisions
--- a/plugins/mod_dialback.lua	Wed Nov 19 22:50:37 2008 +0000
+++ b/plugins/mod_dialback.lua	Wed Nov 19 23:18:12 2008 +0000
@@ -59,7 +59,7 @@
 				log("warn", "Incoming s2s session %s was closed in the meantime, so we can't notify it of the db result", tostring(origin.dialback_verifying):match("%w+$"));
 			else
 				origin.dialback_verifying.sends2s(format("<db:result from='%s' to='%s' id='%s' type='%s'>%s</db:result>",
-					attr.from, attr.to, attr.id, valid, origin.dialback_verifying.dialback_key));
+					attr.to, attr.from, attr.id, valid, origin.dialback_verifying.dialback_key));
 			end
 		end
 	end);

mercurial