Software /
code /
prosody
Changeset
8643:11b6aa30b3e0
mod_proxy65: Fix all warnings from luacheck
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 21 Mar 2018 22:13:11 +0000 |
parents | 8642:d2556f237bc2 |
children | 8644:3b28c7728e3f |
files | plugins/mod_proxy65.lua |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_proxy65.lua Wed Mar 21 22:10:24 2018 +0000 +++ b/plugins/mod_proxy65.lua Wed Mar 21 22:13:11 2018 +0000 @@ -71,7 +71,7 @@ end end -function listener.ondisconnect(conn, err) +function listener.ondisconnect(conn) local session = sessions[conn]; if session then if transfers[session.sha] then @@ -79,7 +79,7 @@ if initiator == conn and target ~= nil then target:close(); elseif target == conn and initiator ~= nil then - initiator:close(); + initiator:close(); end transfers[session.sha] = nil; end @@ -109,7 +109,8 @@ local origin, stanza = event.origin, event.stanza; -- check ACL - while proxy_acl and #proxy_acl > 0 do -- using 'while' instead of 'if' so we can break out of it + -- using 'while' instead of 'if' so we can break out of it + while proxy_acl and #proxy_acl > 0 do --luacheck: ignore 512 local jid = stanza.attr.from; local allow; for _, acl in ipairs(proxy_acl) do