Changeset

6350:bba5f4ffe75a

mod_blocklist: Fix any unblock emptying the blocklist
author Kim Alvefur <zash@zash.se>
date Tue, 12 Aug 2014 15:38:48 +0200
parents 6346:ba7c86406d31
children 6351:10dc228a45a4
files plugins/mod_blocklist.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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