Software /
code /
prosody
Diff
plugins/mod_presence.lua @ 7470:893378a1c03e
mod_presence: remove unused one-letter loop variable [luacheck]
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sat, 09 Jul 2016 00:46:28 +0800 |
parent | 7433:7eec6f3c7300 |
child | 7779:b1f80447a2b1 |
line wrap: on
line diff
--- a/plugins/mod_presence.lua Sat Jul 09 00:45:59 2016 +0800 +++ b/plugins/mod_presence.lua Sat Jul 09 00:46:28 2016 +0800 @@ -130,7 +130,7 @@ 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