diff options
author | Kim Alvefur <zash@zash.se> | 2012-03-03 16:45:34 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-03-03 16:45:34 +0100 |
commit | 3ee4c78cd8116b29687c3b9bdfbb4600db974d8b (patch) | |
tree | a239c1f0f2e1c4174ec5c3da516abad6321a0fc1 /plugins | |
parent | cb1eb75a470e9a101aee99a7c465964b79bedfbc (diff) | |
download | prosody-3ee4c78cd8116b29687c3b9bdfbb4600db974d8b.tar.gz prosody-3ee4c78cd8116b29687c3b9bdfbb4600db974d8b.zip |
mod_dialback, mod_s2s: Log initiation of dialback in mod_dialback
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_dialback.lua | 2 | ||||
-rw-r--r-- | plugins/s2s/mod_s2s.lua | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua index 2c2dc795..e578c412 100644 --- a/plugins/mod_dialback.lua +++ b/plugins/mod_dialback.lua @@ -155,12 +155,14 @@ end, 100); 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 --git a/plugins/s2s/mod_s2s.lua b/plugins/s2s/mod_s2s.lua index bebf1962..407a7e04 100644 --- a/plugins/s2s/mod_s2s.lua +++ b/plugins/s2s/mod_s2s.lua @@ -232,7 +232,6 @@ function stream_callbacks.streamopened(session, attr) -- 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); |