Mercurial > prosody-modules
changeset 4141:aef6f5b9f6fd
mod_muc_inject_mentions: (W311) value assigned to variable _first is overwritten on line 104 before use
author | Seve Ferrer <seve@delape.net> |
---|---|
date | Sun, 20 Sep 2020 13:45:32 +0200 |
parents | fea4a4831e10 |
children | 6906562af2ee |
files | mod_muc_inject_mentions/mod_muc_inject_mentions.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_muc_inject_mentions/mod_muc_inject_mentions.lua Sun Sep 20 13:38:31 2020 +0200 +++ b/mod_muc_inject_mentions/mod_muc_inject_mentions.lua Sun Sep 20 13:45:32 2020 +0200 @@ -96,7 +96,8 @@ -- Check for multiple mentions to the same nickname in a message -- Hey @nick remember to... Ah, also @nick please let me know if... local matches = {} - local _first, _last = 0, 0 + local _first + local _last = 0 while true do -- Use plain search as nick could contain -- characters used in Lua patterns