# HG changeset patch # User Kim Alvefur # Date 1488812172 -3600 # Node ID 9a938b785bc522fcb2d99f9bfa25c1483965f24a # Parent 3941d609ff85f1f1a53d8c711af5826a83b4ccff mod_saslauth: Switch to hook_tag from hook_stanza which was renamed in 2087d42f1e77 diff -r 3941d609ff85 -r 9a938b785bc5 plugins/mod_saslauth.lua --- a/plugins/mod_saslauth.lua Mon Mar 06 15:55:37 2017 +0100 +++ b/plugins/mod_saslauth.lua Mon Mar 06 15:56:12 2017 +0100 @@ -82,7 +82,7 @@ return true; end -module:hook_stanza(xmlns_sasl, "success", function (session, stanza) +module:hook_tag(xmlns_sasl, "success", function (session, stanza) if session.type ~= "s2sout_unauthed" or session.external_auth ~= "attempting" then return; end module:log("debug", "SASL EXTERNAL with %s succeeded", session.to_host); session.external_auth = "succeeded" @@ -93,7 +93,7 @@ return true; end) -module:hook_stanza(xmlns_sasl, "failure", function (session, stanza) +module:hook_tag(xmlns_sasl, "failure", function (session, stanza) if session.type ~= "s2sout_unauthed" or session.external_auth ~= "attempting" then return; end local text = stanza:get_child_text("text"); @@ -114,7 +114,7 @@ return true; end, 500) -module:hook_stanza("http://etherx.jabber.org/streams", "features", function (session, stanza) +module:hook_tag("http://etherx.jabber.org/streams", "features", function (session, stanza) if session.type ~= "s2sout_unauthed" or not session.secure then return; end local mechanisms = stanza:get_child("mechanisms", xmlns_sasl)