diff options
author | Kim Alvefur <zash@zash.se> | 2019-06-20 21:44:43 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-06-20 21:44:43 +0200 |
commit | 57f55730e7837846a0065088885fa101b1a67404 (patch) | |
tree | cbae0ede11e0c762be690377e5773829f9471a31 /plugins | |
parent | 3c50754860eb726956863d76224583e26fbe02d5 (diff) | |
download | prosody-57f55730e7837846a0065088885fa101b1a67404.tar.gz prosody-57f55730e7837846a0065088885fa101b1a67404.zip |
mod_blocklist: Add comment to clarify some logic
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_blocklist.lua | 1 |
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 |