author | Matthew Wild <mwild1@gmail.com> |
Thu, 26 Jan 2017 18:36:15 +0000 | |
changeset 2469 | bd69ffe071e6 |
parent 2468 | 01babf1caa4a |
child 2470 | 349008f9452d |
--- 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