From 8f860ca637c3f0990cb547ddd67c7bb78ded69d9 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 1 May 2018 21:02:15 +0200 Subject: mod_admin_adhoc: Rename loop variable to avoid name clash [luacheck] --- plugins/mod_admin_adhoc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/mod_admin_adhoc.lua') diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua index dc00b107..ca641fe7 100644 --- a/plugins/mod_admin_adhoc.lua +++ b/plugins/mod_admin_adhoc.lua @@ -304,8 +304,8 @@ local get_user_stats_handler = adhoc_simple(get_user_stats_layout, function(fiel 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 -- cgit v1.2.3