Changeset

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
parents 7469:363e4a5e9b0a
children 7471:3631d259bb85
files plugins/mod_presence.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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