aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2015-05-06 19:58:03 +0100
committerMatthew Wild <mwild1@gmail.com>2015-05-06 19:58:03 +0100
commit75e0be19d870f2bbc92f914b6b82c2c6f5879e6b (patch)
tree7351b31be9a66c1427253ae3a25a8b23fc1b361f /core/sessionmanager.lua
parenta83b428dd8ef9eb96e527838182047dadd9fc027 (diff)
downloadprosody-75e0be19d870f2bbc92f914b6b82c2c6f5879e6b.tar.gz
prosody-75e0be19d870f2bbc92f914b6b82c2c6f5879e6b.zip
sessionmanager: Rename unused loop variables to '_' [luacheck]
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 5e4e2991..9ff42aed 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -198,7 +198,7 @@ function send_to_available_resources(username, host, stanza)
local count = 0;
local user = bare_sessions[jid];
if user then
- for k, session in pairs(user.sessions) do
+ for _, session in pairs(user.sessions) do
if session.presence then
session.send(stanza);
count = count + 1;
@@ -213,7 +213,7 @@ function send_to_interested_resources(user, host, stanza)
local count = 0;
local user = bare_sessions[jid];
if user then
- for k, session in pairs(user.sessions) do
+ for _, session in pairs(user.sessions) do
if session.interested then
session.send(stanza);
count = count + 1;