# HG changeset patch # User Matthew Wild # Date 1487543061 0 # Node ID 66b81e144ded00d671f1a37949a559df6bc84195 # Parent c6fd8975704b903653938d265afe538f475c5b2d mod_firewall: Fix CHECK LIST syntax check diff -r c6fd8975704b -r 66b81e144ded 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 = {};