aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_adhoc.lua
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
commitbe5f654319a068fff988eece73e5ed85506ed460 (patch)
treebef08ad300c4d2f6e2f6d07ed58aaeb9c15fe701 /plugins/mod_admin_adhoc.lua
parentad64fec9f28c5dbcb5feda3b3c39303e1eb715b9 (diff)
downloadprosody-be5f654319a068fff988eece73e5ed85506ed460.tar.gz
prosody-be5f654319a068fff988eece73e5ed85506ed460.zip
mod_admin_adhoc: Rename variable to avoid name clash [luacheck]
Diffstat (limited to 'plugins/mod_admin_adhoc.lua')
-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();