Software /
code /
prosody
Changeset
4587:93a84314c296
mod_dialback, mod_s2s: Log initiation of dialback in mod_dialback
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 03 Mar 2012 16:45:34 +0100 |
parents | 4586:4d63852910ff |
children | 4588:3e7702891649 |
files | plugins/mod_dialback.lua plugins/s2s/mod_s2s.lua |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_dialback.lua Sat Mar 03 13:28:33 2012 +0100 +++ b/plugins/mod_dialback.lua Sat Mar 03 16:45:34 2012 +0100 @@ -155,12 +155,14 @@ module:hook_stanza(xmlns_stream, "features", function (origin, stanza) if not origin.external_auth or origin.external_auth == "failed" then + module:log("debug", "Initiating dialback..."); initiate_dialback(origin); return true; end end, 100); module:hook("s2s-authenticate-legacy", function (event) + module:log("debug", "Initiating dialback..."); initiate_dialback(event.origin); return true; end, 100);
--- a/plugins/s2s/mod_s2s.lua Sat Mar 03 13:28:33 2012 +0100 +++ b/plugins/s2s/mod_s2s.lua Sat Mar 03 16:45:34 2012 +0100 @@ -232,7 +232,6 @@ -- If server is pre-1.0, don't wait for features, just do dialback if session.version < 1.0 then if not session.dialback_verifying then - log("debug", "Initiating dialback..."); hosts[session.from_host].events.fire_event("s2s-authenticate-legacy", { origin = session }); else s2s_mark_connected(session);