Mercurial > prosody-modules
diff mod_firewall/conditions.lib.lua @ 979:cec42f884475
mod_firewall: The default value of the 'type' attribute on message stanzas is 'normal'
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 08 Apr 2013 17:03:34 +0200 |
parents | 53e158e44a44 |
children | 69dd4e4e54a2 |
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua Mon Apr 08 14:45:00 2013 +0100 +++ b/mod_firewall/conditions.lib.lua Mon Apr 08 17:03:34 2013 +0200 @@ -59,7 +59,7 @@ end function condition_handlers.TYPE(type) - return compile_comparison_list("(type or (name == 'message' and 'chat') or (name == 'presence' and 'available'))", type), { "type", "name" }; + return compile_comparison_list("(type or (name == 'message' and 'normal') or (name == 'presence' and 'available'))", type), { "type", "name" }; end local function zone_check(zone, which)