aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_blocklist.lua
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
commit47b408b4bdf206a1c2967e1d8272f945e816fc9c (patch)
treecbae0ede11e0c762be690377e5773829f9471a31 /plugins/mod_blocklist.lua
parentc0a8fc323c9b4ef6dc160106ae19f421ec0c7e32 (diff)
downloadprosody-47b408b4bdf206a1c2967e1d8272f945e816fc9c.tar.gz
prosody-47b408b4bdf206a1c2967e1d8272f945e816fc9c.zip
mod_blocklist: Add comment to clarify some logic
Diffstat (limited to 'plugins/mod_blocklist.lua')
-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