Mercurial > prosody-hg
comparison plugins/mod_dialback.lua @ 8517:980d2daf3ed4
mod_dialback: Ignore unused arguments [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 04 Feb 2018 01:17:22 +0100 |
| parents | 83cab25465e6 |
| children | 0de0018bdf91 |
comparison
equal
deleted
inserted
replaced
| 8516:83cab25465e6 | 8517:980d2daf3ed4 |
|---|---|
| 188 end | 188 end |
| 189 return true; | 189 return true; |
| 190 end | 190 end |
| 191 end); | 191 end); |
| 192 | 192 |
| 193 module:hook_tag("urn:ietf:params:xml:ns:xmpp-sasl", "failure", function (origin, stanza) | 193 module:hook_tag("urn:ietf:params:xml:ns:xmpp-sasl", "failure", function (origin, stanza) -- luacheck: ignore 212/stanza |
| 194 if origin.external_auth == "failed" then | 194 if origin.external_auth == "failed" then |
| 195 module:log("debug", "SASL EXTERNAL failed, falling back to dialback"); | 195 module:log("debug", "SASL EXTERNAL failed, falling back to dialback"); |
| 196 initiate_dialback(origin); | 196 initiate_dialback(origin); |
| 197 return true; | 197 return true; |
| 198 end | 198 end |
| 199 end, 100); | 199 end, 100); |
| 200 | 200 |
| 201 module:hook_tag(xmlns_stream, "features", function (origin, stanza) | 201 module:hook_tag(xmlns_stream, "features", function (origin, stanza) -- luacheck: ignore 212/stanza |
| 202 if not origin.external_auth or origin.external_auth == "failed" then | 202 if not origin.external_auth or origin.external_auth == "failed" then |
| 203 module:log("debug", "Initiating dialback..."); | 203 module:log("debug", "Initiating dialback..."); |
| 204 initiate_dialback(origin); | 204 initiate_dialback(origin); |
| 205 return true; | 205 return true; |
| 206 end | 206 end |
