mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
mod_blocklist: Add comment to clarify some logic
This commit is contained in:
parent
3c50754860
commit
57f55730e7
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue