# HG changeset patch # User Seve Ferrer # Date 1600601658 -7200 # Node ID c6bb64a12f925073538c9216dcec75d05137e196 # Parent e8c1b35bc25b24ac59123950e215ec1e40c691ba mod_muc_inject_mentions: (W213) unused loop variable i diff -r e8c1b35bc25b -r c6bb64a12f92 mod_muc_inject_mentions/mod_muc_inject_mentions.lua --- 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