aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_dialback.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-02-04 01:06:40 +0100
committerKim Alvefur <zash@zash.se>2018-02-04 01:06:40 +0100
commit90cc3b09b5dd443d942ecce7ec7df8393d9c43be (patch)
tree2f081cb712c23fa4b3c62f73ec03d858c2576f5c /plugins/mod_dialback.lua
parent242eb682466664a3824b937ee48f00509505fecd (diff)
downloadprosody-90cc3b09b5dd443d942ecce7ec7df8393d9c43be.tar.gz
prosody-90cc3b09b5dd443d942ecce7ec7df8393d9c43be.zip
mod_dialback: Use renamed API for hooking non-stanza tags
Diffstat (limited to 'plugins/mod_dialback.lua')
-rw-r--r--plugins/mod_dialback.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua
index cc1615cf..9afde365 100644
--- a/plugins/mod_dialback.lua
+++ b/plugins/mod_dialback.lua
@@ -189,7 +189,7 @@ module:hook("stanza/jabber:server:dialback:result", function(event)
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 @@ module:hook_stanza("urn:ietf:params:xml:ns:xmpp-sasl", "failure", function (orig
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);