Mercurial > prosody-modules
diff mod_dnsbl/mod_dnsbl.lua @ 6509:f61564e11d3b
various: Adjust for loop variables becoming constants in Lua 5.5
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 07 Apr 2026 14:30:31 +0200 |
| parents | 1213145e27fc |
| children |
line wrap: on
line diff
--- a/mod_dnsbl/mod_dnsbl.lua Tue Apr 07 06:51:05 2026 +0200 +++ b/mod_dnsbl/mod_dnsbl.lua Tue Apr 07 14:30:31 2026 +0200 @@ -52,9 +52,9 @@ end local n_line, n_added = 0, 0; - for line in f:lines() do + for rawline in f:lines() do n_line = n_line + 1; - line = line:gsub("#.+$", ""):match("^%s*(.-)%s*$"); + local line = rawline:gsub("#.+$", ""):match("^%s*(.-)%s*$"); if line == "" then -- luacheck: ignore 542 -- Skip else
