Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
7954:60b83f83f317 | 7955:bba71bfe2154 |
---|---|
195 | 195 |
196 module:hook_global("user-deleted", function(event) | 196 module:hook_global("user-deleted", function(event) |
197 local username, host = event.username, event.host; | 197 local username, host = event.username, event.host; |
198 local user = hosts[host].sessions[username]; | 198 local user = hosts[host].sessions[username]; |
199 if user and user.sessions then | 199 if user and user.sessions then |
200 for jid, session in pairs(user.sessions) do | 200 for _, session in pairs(user.sessions) do |
201 session:close{ condition = "not-authorized", text = "Account deleted" }; | 201 session:close{ condition = "not-authorized", text = "Account deleted" }; |
202 end | 202 end |
203 end | 203 end |
204 end, 200); | 204 end, 200); |
205 | 205 |