# HG changeset patch # User Kim Alvefur # Date 1525200891 -7200 # Node ID 82bdeb8009ce44fbce29b760ec167df028765e15 # Parent 9c9b198bab843561483d2fec71efa9aa2f6fad17 mod_admin_adhoc: Rename variable to avoid name clash [luacheck] diff -r 9c9b198bab84 -r 82bdeb8009ce plugins/mod_admin_adhoc.lua --- a/plugins/mod_admin_adhoc.lua Tue May 01 20:51:37 2018 +0200 +++ b/plugins/mod_admin_adhoc.lua Tue May 01 20:54:51 2018 +0200 @@ -251,15 +251,15 @@ local roster = rm_load_roster(user, host); local query = st.stanza("query", { xmlns = "jabber:iq:roster" }); - for jid in pairs(roster) do - if jid then + for contact_jid in pairs(roster) do + if contact_jid then query:tag("item", { - jid = jid, - subscription = roster[jid].subscription, - ask = roster[jid].ask, - name = roster[jid].name, + jid = contact_jid, + subscription = roster[contact_jid].subscription, + ask = roster[contact_jid].ask, + name = roster[contact_jid].name, }); - for group in pairs(roster[jid].groups) do + for group in pairs(roster[contact_jid].groups) do query:tag("group"):text(group):up(); end query:up();