# HG changeset patch # User Matthew Wild # Date 1365186005 -3600 # Node ID 04e85eb3dfefe4d8fe4298105a8ad9c6fca1cc12 # Parent c7fca2c9e24f24d37f9f44929c5f30875b206d95 mod_firewall/conditions: Default types for message and presence diff -r c7fca2c9e24f -r 04e85eb3dfef mod_firewall/conditions.lib.lua --- a/mod_firewall/conditions.lib.lua Fri Apr 05 19:18:41 2013 +0100 +++ b/mod_firewall/conditions.lib.lua Fri Apr 05 19:20:05 2013 +0100 @@ -59,7 +59,8 @@ end function condition_handlers.TYPE(type) - return compile_comparison_list("type", type), { "type" }; + return compile_comparison_list("(type or (name == 'message' and 'chat') or (name == 'presence' and 'available'))", type), { "type", "name" }; +end end function condition_handlers.ENTERING(zone)