# HG changeset patch # User Matthew Wild # Date 1487673430 0 # Node ID acdc1767a715f6bba0317271e6b2b4dba664bc77 # Parent 22a271641c29c321a999ba357d23c8f1e66016aa mod_firewall: Make parameter to 'IN ROSTER' optional diff -r 22a271641c29 -r acdc1767a715 mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Mon Feb 20 13:13:54 2017 +0000 +++ b/mod_firewall/conditions.lib.lua Tue Feb 21 10:37:10 2017 +0000 @@ -100,8 +100,9 @@ return zone_check(zone, "from"); end +-- IN ROSTER? (parameter is deprecated) function condition_handlers.IN_ROSTER(yes_no) - local in_roster_requirement = string_to_boolean(yes_no); + local in_roster_requirement = string_to_boolean(yes_no or "yes"); -- COMPAT w/ older scripts return "not "..(in_roster_requirement and "not" or "").." roster_entry", { "roster_entry" }; end