# HG changeset patch # User Kim Alvefur # Date 1525201335 -7200 # Node ID 375f2e663ceaea056d71a2dd57b41d38a5ea2508 # Parent 82bdeb8009ce44fbce29b760ec167df028765e15 mod_admin_adhoc: Rename loop variable to avoid name clash [luacheck] diff -r 82bdeb8009ce -r 375f2e663cea plugins/mod_admin_adhoc.lua --- a/plugins/mod_admin_adhoc.lua Tue May 01 20:54:51 2018 +0200 +++ b/plugins/mod_admin_adhoc.lua Tue May 01 21:02:15 2018 +0200 @@ -304,8 +304,8 @@ local rostersize = 0; local IPs = ""; local resources = ""; - for jid in pairs(roster) do - if jid then + for contact_jid in pairs(roster) do + if contact_jid then rostersize = rostersize + 1; end end