Comparison

plugins/mod_admin_adhoc.lua @ 8772:375f2e663cea

mod_admin_adhoc: Rename loop variable to avoid name clash [luacheck]
author Kim Alvefur <zash@zash.se>
date Tue, 01 May 2018 21:02:15 +0200
parent 8771:82bdeb8009ce
child 8773:a785b1050644
comparison
equal deleted inserted replaced
8771:82bdeb8009ce 8772:375f2e663cea
302 end 302 end
303 local roster = rm_load_roster(user, host); 303 local roster = rm_load_roster(user, host);
304 local rostersize = 0; 304 local rostersize = 0;
305 local IPs = ""; 305 local IPs = "";
306 local resources = ""; 306 local resources = "";
307 for jid in pairs(roster) do 307 for contact_jid in pairs(roster) do
308 if jid then 308 if contact_jid then
309 rostersize = rostersize + 1; 309 rostersize = rostersize + 1;
310 end 310 end
311 end 311 end
312 for resource, session in pairs((hosts[host].sessions[user] and hosts[host].sessions[user].sessions) or {}) do 312 for resource, session in pairs((hosts[host].sessions[user] and hosts[host].sessions[user].sessions) or {}) do
313 resources = resources .. "\n" .. resource; 313 resources = resources .. "\n" .. resource;