# HG changeset patch # User Kim Alvefur # Date 1561059883 -7200 # Node ID 0656bd283fa2f20094e8ff4730ed05ffea92c2b9 # Parent 4b2cc8a6044945cbfb83287da87687c546a84f84 mod_blocklist: Add comment to clarify some logic diff -r 4b2cc8a60449 -r 0656bd283fa2 plugins/mod_blocklist.lua --- 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