# HG changeset patch # User Anton Shestakov # Date 1467996388 -28800 # Node ID 893378a1c03efa213e29683011cca47a7eea1056 # Parent 363e4a5e9b0af7ace8a85da8cf8042c433870d9d mod_presence: remove unused one-letter loop variable [luacheck] diff -r 363e4a5e9b0a -r 893378a1c03e plugins/mod_presence.lua --- 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