diff options
author | Kim Alvefur <zash@zash.se> | 2014-08-12 15:38:48 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-08-12 15:38:48 +0200 |
commit | d03a062800bd0c0b60c2aa8889d145c0971820c1 (patch) | |
tree | bd787e99501f0bd425b1b55ea95a8edc9aab55e8 | |
parent | 4cb43c86ad71afa81185bf3e604d9fdd6b860286 (diff) | |
download | prosody-d03a062800bd0c0b60c2aa8889d145c0971820c1.tar.gz prosody-d03a062800bd0c0b60c2aa8889d145c0971820c1.zip |
mod_blocklist: Fix any unblock emptying the blocklist
-rw-r--r-- | plugins/mod_blocklist.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_blocklist.lua b/plugins/mod_blocklist.lua index 41a66f35..1a43dfd3 100644 --- a/plugins/mod_blocklist.lua +++ b/plugins/mod_blocklist.lua @@ -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 |