Software /
code /
prosody
Changeset
8771:82bdeb8009ce
mod_admin_adhoc: Rename variable to avoid name clash [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 01 May 2018 20:54:51 +0200 |
parents | 8770:9c9b198bab84 |
children | 8772:375f2e663cea |
files | plugins/mod_admin_adhoc.lua |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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();