aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_dialback.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-11-19 23:18:12 +0000
committerMatthew Wild <mwild1@gmail.com>2008-11-19 23:18:12 +0000
commitccb65fee139d73605b660e144a8f67ca6aaccf12 (patch)
tree5da6bcd78a120ee62cbcf0cfbec9268ee31258c8 /plugins/mod_dialback.lua
parent5a46bff5b212336561c58ec6b374299abf54a069 (diff)
downloadprosody-ccb65fee139d73605b660e144a8f67ca6aaccf12.tar.gz
prosody-ccb65fee139d73605b660e144a8f67ca6aaccf12.zip
Fix the reversed to/from on the final db:result. Fixes M-Link and Gmail. Thanks dwd!!
Diffstat (limited to 'plugins/mod_dialback.lua')
-rw-r--r--plugins/mod_dialback.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua
index 21769dd9..87ac303b 100644
--- a/plugins/mod_dialback.lua
+++ b/plugins/mod_dialback.lua
@@ -59,7 +59,7 @@ add_handler({ "s2sout_unauthed", "s2sout" }, "verify", xmlns_dialback,
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);