aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_proxy65.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-03-21 22:13:11 +0000
committerMatthew Wild <mwild1@gmail.com>2018-03-21 22:13:11 +0000
commit1b20db5bd00c6a337c6b50987c6e47e5eb4649c8 (patch)
tree61cec33b61d8a7f48b4804518b5ef16a7bb1186a /plugins/mod_proxy65.lua
parent8a86a0512677bbe950c1af87203570b2443de1e5 (diff)
downloadprosody-1b20db5bd00c6a337c6b50987c6e47e5eb4649c8.tar.gz
prosody-1b20db5bd00c6a337c6b50987c6e47e5eb4649c8.zip
mod_proxy65: Fix all warnings from luacheck
Diffstat (limited to 'plugins/mod_proxy65.lua')
-rw-r--r--plugins/mod_proxy65.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/mod_proxy65.lua b/plugins/mod_proxy65.lua
index cf1d4c60..6c8c1300 100644
--- a/plugins/mod_proxy65.lua
+++ b/plugins/mod_proxy65.lua
@@ -71,7 +71,7 @@ function listener.onincoming(conn, data)
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 @@ function listener.ondisconnect(conn, err)
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 @@ function module.add_host(module)
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