aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_dialback.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-03-03 18:27:32 +0000
committerMatthew Wild <mwild1@gmail.com>2012-03-03 18:27:32 +0000
commitf908f67fe29845d866a3a9469522b8d6fba4333f (patch)
tree65abf0a8b4428276a7be51803f02f176b368530a /plugins/mod_dialback.lua
parent70d52039207bfec821b6d30046802e9615843c33 (diff)
parent3ee4c78cd8116b29687c3b9bdfbb4600db974d8b (diff)
downloadprosody-f908f67fe29845d866a3a9469522b8d6fba4333f.tar.gz
prosody-f908f67fe29845d866a3a9469522b8d6fba4333f.zip
Merge with Zash
Diffstat (limited to 'plugins/mod_dialback.lua')
-rw-r--r--plugins/mod_dialback.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua
index 5cb59fef..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-no-stream-features", function (event)
+module:hook("s2s-authenticate-legacy", function (event)
+ module:log("debug", "Initiating dialback...");
initiate_dialback(event.origin);
return true;
end, 100);