diff options
author | Kim Alvefur <zash@zash.se> | 2018-05-01 21:02:15 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-05-01 21:02:15 +0200 |
commit | 8f860ca637c3f0990cb547ddd67c7bb78ded69d9 (patch) | |
tree | 9ee95523ba292ccbea9af02102d3ce64c2d65fbf /plugins/mod_admin_adhoc.lua | |
parent | 3cc76d33207aebbf1a48bbb4e3d07ef579b10e7b (diff) | |
download | prosody-8f860ca637c3f0990cb547ddd67c7bb78ded69d9.tar.gz prosody-8f860ca637c3f0990cb547ddd67c7bb78ded69d9.zip |
mod_admin_adhoc: Rename loop variable to avoid name clash [luacheck]
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-rw-r--r-- | plugins/mod_admin_adhoc.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |