aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-06-20 21:44:43 +0200
committerKim Alvefur <zash@zash.se>2019-06-20 21:44:43 +0200
commit57f55730e7837846a0065088885fa101b1a67404 (patch)
treecbae0ede11e0c762be690377e5773829f9471a31
parent3c50754860eb726956863d76224583e26fbe02d5 (diff)
downloadprosody-57f55730e7837846a0065088885fa101b1a67404.tar.gz
prosody-57f55730e7837846a0065088885fa101b1a67404.zip
mod_blocklist: Add comment to clarify some logic
-rw-r--r--plugins/mod_blocklist.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_blocklist.lua b/plugins/mod_blocklist.lua
index 18d28be2..cf8aad80 100644
--- a/plugins/mod_blocklist.lua
+++ b/plugins/mod_blocklist.lua
@@ -189,6 +189,7 @@ local function edit_blocklist(event)
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