Software /
code /
prosody
Comparison
plugins/mod_dialback.lua @ 259:1485d272400d
Some more logging fixes
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 14 Nov 2008 02:41:37 +0000 |
parent | 219:f06e97f525bc |
child | 260:182f0c895676 |
comparison
equal
deleted
inserted
replaced
258:a93ccd84db83 | 259:1485d272400d |
---|---|
20 type = "valid" | 20 type = "valid" |
21 else | 21 else |
22 type = "invalid" | 22 type = "invalid" |
23 log("warn", "Asked to verify a dialback key that was incorrect. An imposter is claiming to be %s?", attr.to); | 23 log("warn", "Asked to verify a dialback key that was incorrect. An imposter is claiming to be %s?", attr.to); |
24 end | 24 end |
25 log("debug", "verifyied dialback key... it is %s", type); | |
25 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])); | 26 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])); |
26 end); | 27 end); |
27 | 28 |
28 add_handler("s2sin_unauthed", "result", xmlns_dialback, | 29 add_handler("s2sin_unauthed", "result", xmlns_dialback, |
29 function (origin, stanza) | 30 function (origin, stanza) |