Mercurial > prosody-hg
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 |
| parents | 4b2cc8a60449 |
| children | 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
