Software /
code /
prosody
Diff
plugins/mod_blocklist.lua @ 10054:0656bd283fa2
mod_blocklist: Add comment to clarify some logic
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 20 Jun 2019 21:44:43 +0200 |
parent | 10053:4b2cc8a60449 |
child | 10111:0f335815244f |
line wrap: on
line diff
--- a/plugins/mod_blocklist.lua Thu Jun 20 21:40:27 2019 +0200 +++ b/plugins/mod_blocklist.lua Thu Jun 20 21:44:43 2019 +0200 @@ -189,6 +189,7 @@ if is_blocking then for jid in pairs(send_unavailable) do + -- Check that this JID isn't already blocked, i.e. this is not a change if not blocklist[jid] then for _, session in pairs(sessions[username].sessions) do if session.presence then