aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-03-06 15:24:44 +0100
committerKim Alvefur <zash@zash.se>2017-03-06 15:24:44 +0100
commit7e8dcd944e500bb5eae41a50826226bc13e0ae85 (patch)
tree8bf2ce00c4271ef7776259fe679d37934d253f35 /plugins
parent71d437db39b20050a81c6f7d02abbf4e2cca4e31 (diff)
downloadprosody-7e8dcd944e500bb5eae41a50826226bc13e0ae85.tar.gz
prosody-7e8dcd944e500bb5eae41a50826226bc13e0ae85.zip
mod_c2s: Rename unused loop variable to _ [luacheck]
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_c2s.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index a654213c..cfeb0f0e 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -197,7 +197,7 @@ module:hook_global("user-deleted", function(event)
local username, host = event.username, event.host;
local user = hosts[host].sessions[username];
if user and user.sessions then
- for jid, session in pairs(user.sessions) do
+ for _, session in pairs(user.sessions) do
session:close{ condition = "not-authorized", text = "Account deleted" };
end
end