mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 21:57:45 +03:00
mod_blocklist: Fix any unblock emptying the blocklist
This commit is contained in:
parent
aa558a1dc7
commit
ea8e101a96
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ local function edit_blocklist(event)
|
|||
|
||||
local new_blocklist = {};
|
||||
|
||||
if mode and next(new) then
|
||||
if mode or next(new) then
|
||||
for jid in pairs(blocklist) do
|
||||
new_blocklist[jid] = true;
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue