Software /
code /
prosody
Diff
plugins/mod_dialback.lua @ 282:80e7de32b618
Merging my new SASL code with Waqas' adjusted saslauth module.
author | Tobias Markmann <tm@ayena.de> |
---|---|
date | Sat, 15 Nov 2008 13:47:17 +0100 |
parent | 260:182f0c895676 |
child | 347:fba39fda0879 |
line wrap: on
line diff
--- a/plugins/mod_dialback.lua Wed Nov 12 21:38:46 2008 +0100 +++ b/plugins/mod_dialback.lua Sat Nov 15 13:47:17 2008 +0100 @@ -22,6 +22,7 @@ type = "invalid" log("warn", "Asked to verify a dialback key that was incorrect. An imposter is claiming to be %s?", attr.to); end + log("debug", "verifyied dialback key... it is %s", type); origin.sends2s(format("<db:verify from='%s' to='%s' id='%s' type='%s'>%s</db:verify>", attr.to, attr.from, attr.id, type, stanza[1])); end); @@ -38,7 +39,7 @@ send_s2s(origin.to_host, origin.from_host, format("<db:verify from='%s' to='%s' id='%s'>%s</db:verify>", origin.to_host, origin.from_host, origin.streamid, origin.dialback_key)); - hosts[origin.from_host].dialback_verifying = origin; + hosts[origin.to_host].s2sout[origin.from_host].dialback_verifying = origin; end); add_handler({ "s2sout_unauthed", "s2sout" }, "verify", xmlns_dialback,