# HG changeset patch # User Seve Ferrer # Date 1600602332 -7200 # Node ID aef6f5b9f6fd57907bf50ff5da2aac1304b3f397 # Parent fea4a4831e101290756c15ff28c51338d06a7e62 mod_muc_inject_mentions: (W311) value assigned to variable _first is overwritten on line 104 before use diff -r fea4a4831e10 -r aef6f5b9f6fd mod_muc_inject_mentions/mod_muc_inject_mentions.lua --- 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