aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-05-01 20:54:51 +0200
committerKim Alvefur <zash@zash.se>2018-05-01 20:54:51 +0200
commit3cc76d33207aebbf1a48bbb4e3d07ef579b10e7b (patch)
treebef08ad300c4d2f6e2f6d07ed58aaeb9c15fe701
parent4488eebd521a4505f25df1353855ab22fca3eab8 (diff)
downloadprosody-3cc76d33207aebbf1a48bbb4e3d07ef579b10e7b.tar.gz
prosody-3cc76d33207aebbf1a48bbb4e3d07ef579b10e7b.zip
mod_admin_adhoc: Rename variable to avoid name clash [luacheck]
-rw-r--r--plugins/mod_admin_adhoc.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/mod_admin_adhoc.lua b/plugins/mod_admin_adhoc.lua
index 0d84e00b..dc00b107 100644
--- a/plugins/mod_admin_adhoc.lua
+++ b/plugins/mod_admin_adhoc.lua
@@ -251,15 +251,15 @@ local get_user_roster_handler = adhoc_simple(get_user_roster_layout, function(fi
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();