Software /
code /
prosody-modules
Changeset
4139:c6bb64a12f92
mod_muc_inject_mentions: (W213) unused loop variable i
author | Seve Ferrer <seve@delape.net> |
---|---|
date | Sun, 20 Sep 2020 13:34:18 +0200 |
parents | 4138:e8c1b35bc25b |
children | 4140:fea4a4831e10 |
files | mod_muc_inject_mentions/mod_muc_inject_mentions.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_inject_mentions/mod_muc_inject_mentions.lua Sun Sep 20 10:31:02 2020 +0200 +++ b/mod_muc_inject_mentions/mod_muc_inject_mentions.lua Sun Sep 20 13:34:18 2020 +0200 @@ -52,7 +52,7 @@ end local preffix = body:sub(first - 1, first - 1) - for i, _preffix in ipairs(prefixes) do + for _, _preffix in ipairs(prefixes) do if preffix == _preffix then return true end @@ -78,7 +78,7 @@ end local suffix = body:sub(last+1, last+1) - for i, _suffix in ipairs(suffixes) do + for _, _suffix in ipairs(suffixes) do if suffix == _suffix then return true end