Mercurial > prosody-modules
comparison mod_muc_inject_mentions/mod_muc_inject_mentions.lua @ 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 | e8c1b35bc25b |
children | fea4a4831e10 |
comparison
equal
deleted
inserted
replaced
4138:e8c1b35bc25b | 4139:c6bb64a12f92 |
---|---|
50 then | 50 then |
51 return false | 51 return false |
52 end | 52 end |
53 | 53 |
54 local preffix = body:sub(first - 1, first - 1) | 54 local preffix = body:sub(first - 1, first - 1) |
55 for i, _preffix in ipairs(prefixes) do | 55 for _, _preffix in ipairs(prefixes) do |
56 if preffix == _preffix then | 56 if preffix == _preffix then |
57 return true | 57 return true |
58 end | 58 end |
59 end | 59 end |
60 | 60 |
76 then | 76 then |
77 return false | 77 return false |
78 end | 78 end |
79 | 79 |
80 local suffix = body:sub(last+1, last+1) | 80 local suffix = body:sub(last+1, last+1) |
81 for i, _suffix in ipairs(suffixes) do | 81 for _, _suffix in ipairs(suffixes) do |
82 if suffix == _suffix then | 82 if suffix == _suffix then |
83 return true | 83 return true |
84 end | 84 end |
85 end | 85 end |
86 | 86 |