Comparison

plugins/mod_dialback.lua @ 352:a73a5afd7da3

Fix the reversed to/from on the final db:result. Fixes M-Link and Gmail. Thanks dwd!!
author Matthew Wild <mwild1@gmail.com>
date Wed, 19 Nov 2008 23:18:12 +0000
parent 348:aab28eacd84e
child 438:193f9dd64f17
comparison
equal deleted inserted replaced
351:b6c552bc5716 352:a73a5afd7da3
57 end 57 end
58 if not origin.dialback_verifying.sends2s then 58 if not origin.dialback_verifying.sends2s then
59 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+$")); 59 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+$"));
60 else 60 else
61 origin.dialback_verifying.sends2s(format("<db:result from='%s' to='%s' id='%s' type='%s'>%s</db:result>", 61 origin.dialback_verifying.sends2s(format("<db:result from='%s' to='%s' id='%s' type='%s'>%s</db:result>",
62 attr.from, attr.to, attr.id, valid, origin.dialback_verifying.dialback_key)); 62 attr.to, attr.from, attr.id, valid, origin.dialback_verifying.dialback_key));
63 end 63 end
64 end 64 end
65 end); 65 end);
66 66
67 add_handler({ "s2sout_unauthed", "s2sout" }, "result", xmlns_dialback, 67 add_handler({ "s2sout_unauthed", "s2sout" }, "result", xmlns_dialback,