Software /
code /
prosody
Changeset
8514:671343e92070
mod_dialback: Use renamed API for hooking non-stanza tags
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 04 Feb 2018 01:06:40 +0100 |
parents | 8513:c6be9bbd0a1a |
children | 8515:cbb5f4488b1b |
files | plugins/mod_dialback.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_dialback.lua Sun Feb 04 01:05:06 2018 +0100 +++ b/plugins/mod_dialback.lua Sun Feb 04 01:06:40 2018 +0100 @@ -189,7 +189,7 @@ end end); -module:hook_stanza("urn:ietf:params:xml:ns:xmpp-sasl", "failure", function (origin, stanza) +module:hook_tag("urn:ietf:params:xml:ns:xmpp-sasl", "failure", function (origin, stanza) if origin.external_auth == "failed" then module:log("debug", "SASL EXTERNAL failed, falling back to dialback"); initiate_dialback(origin); @@ -197,7 +197,7 @@ end end, 100); -module:hook_stanza(xmlns_stream, "features", function (origin, stanza) +module:hook_tag(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);