# HG changeset patch # User Kim Alvefur # Date 1330789534 -3600 # Node ID 93a84314c296eeed26615ddbf9304a0477d5a136 # Parent 4d63852910ffa699ee1077bf309f2b5124df5295 mod_dialback, mod_s2s: Log initiation of dialback in mod_dialback diff -r 4d63852910ff -r 93a84314c296 plugins/mod_dialback.lua --- 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); diff -r 4d63852910ff -r 93a84314c296 plugins/s2s/mod_s2s.lua --- 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);