mod_firewall: Fix CHECK LIST syntax check
authorMatthew Wild <mwild1@gmail.com>
Sun, 19 Feb 2017 22:24:21 +0000
changeset 2525 66b81e144ded
parent 2524 c6fd8975704b
child 2526 72cbec103709
mod_firewall: Fix CHECK LIST syntax check
mod_firewall/conditions.lib.lua
--- a/mod_firewall/conditions.lib.lua	Sun Feb 19 21:10:26 2017 +0000
+++ b/mod_firewall/conditions.lib.lua	Sun Feb 19 22:24:21 2017 +0000
@@ -255,7 +255,7 @@
 -- CHECK LIST: spammers contains $<@from>
 function condition_handlers.CHECK_LIST(list_condition)
 	local list_name, expr = list_condition:match("(%S+) contains (.+)$");
-	if not list_name and expr then
+	if not (list_name and expr) then
 		error("Error parsing list check, syntax: LISTNAME contains EXPRESSION");
 	end
 	local meta_deps = {};