# HG changeset patch # User Kim Alvefur # Date 1407850728 -7200 # Node ID bba5f4ffe75a3c601fe94da20d5f2be96042dba3 # Parent ba7c86406d31e78091d63b66bd8beb8939298d45 mod_blocklist: Fix any unblock emptying the blocklist diff -r ba7c86406d31 -r bba5f4ffe75a plugins/mod_blocklist.lua --- a/plugins/mod_blocklist.lua Sun Aug 10 10:29:38 2014 +0200 +++ b/plugins/mod_blocklist.lua Tue Aug 12 15:38:48 2014 +0200 @@ -127,7 +127,7 @@ 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