changeset 2469 | bd69ffe071e6 |
parent 2407 | f96bdfd81eba |
child 2523 | d4bc434a60a4 |
--- a/mod_firewall/conditions.lib.lua Thu Jan 26 18:04:59 2017 +0000 +++ b/mod_firewall/conditions.lib.lua Thu Jan 26 18:36:15 2017 +0000 @@ -73,6 +73,10 @@ return ("to == %q"):format(to), { "to" }; end +function condition_handlers.TO_SELF() + return ("to == nil"); +end + function condition_handlers.TYPE(type) return compile_comparison_list("(type or (name == 'message' and 'normal') or (name == 'presence' and 'available'))", type), { "type", "name" }; end