Software /
code /
prosody
Diff
plugins/mod_c2s.lua @ 7955:bba71bfe2154
mod_c2s: Rename unused loop variable to _ [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 06 Mar 2017 15:24:44 +0100 |
parent | 7954:60b83f83f317 |
child | 7957:083c062c2fb7 |
child | 8192:4354f556c5db |
line wrap: on
line diff
--- a/plugins/mod_c2s.lua Mon Mar 06 15:24:33 2017 +0100 +++ b/plugins/mod_c2s.lua Mon Mar 06 15:24:44 2017 +0100 @@ -197,7 +197,7 @@ 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