aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-08-12 15:38:48 +0200
committerKim Alvefur <zash@zash.se>2014-08-12 15:38:48 +0200
commitea8e101a96e9e0150ddf86fcf5475285f4427f3e (patch)
treebd787e99501f0bd425b1b55ea95a8edc9aab55e8
parentaa558a1dc7bf72debc066690e43e3a6fc4be1db7 (diff)
downloadprosody-ea8e101a96e9e0150ddf86fcf5475285f4427f3e.tar.gz
prosody-ea8e101a96e9e0150ddf86fcf5475285f4427f3e.zip
mod_blocklist: Fix any unblock emptying the blocklist
-rw-r--r--plugins/mod_blocklist.lua2
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