mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_presence: remove unused one-letter loop variable [luacheck]
This commit is contained in:
parent
4da595c2cf
commit
0ce8de81ab
1 changed files with 1 additions and 1 deletions
|
@ -130,7 +130,7 @@ function send_presence_of_available_resources(user, host, jid, recipient_session
|
|||
if h and h.type == "local" then
|
||||
local u = h.sessions[user];
|
||||
if u then
|
||||
for k, session in pairs(u.sessions) do
|
||||
for _, session in pairs(u.sessions) do
|
||||
local pres = session.presence;
|
||||
if pres then
|
||||
if stanza then pres = stanza; pres.attr.from = session.full_jid; end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue