mod_dialback: Ignore unused arguments [luacheck]

This commit is contained in:
Kim Alvefur 2018-02-04 01:17:22 +01:00
parent e8ff8bf606
commit cf7486984a

View file

@ -190,7 +190,7 @@ module:hook("stanza/jabber:server:dialback:result", function(event)
end
end);
module:hook_tag("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) -- luacheck: ignore 212/stanza
if origin.external_auth == "failed" then
module:log("debug", "SASL EXTERNAL failed, falling back to dialback");
initiate_dialback(origin);
@ -198,7 +198,7 @@ module:hook_tag("urn:ietf:params:xml:ns:xmpp-sasl", "failure", function (origin,
end
end, 100);
module:hook_tag(xmlns_stream, "features", function (origin, stanza)
module:hook_tag(xmlns_stream, "features", function (origin, stanza) -- luacheck: ignore 212/stanza
if not origin.external_auth or origin.external_auth == "failed" then
module:log("debug", "Initiating dialback...");
initiate_dialback(origin);