Software /
code /
prosody
Changeset
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 | 10053:4b2cc8a60449 |
children | 10056:948097f62d7d |
files | plugins/mod_blocklist.lua |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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