mod_blocklist: Fix any unblock emptying the blocklist

This commit is contained in:
Kim Alvefur 2014-08-12 15:38:48 +02:00
parent aa558a1dc7
commit ea8e101a96

View file

@ -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