mod_firewall: The default value of the 'type' attribute on message stanzas is 'normal'
authorKim Alvefur <zash@zash.se>
Mon, 08 Apr 2013 17:03:34 +0200
changeset 979 cec42f884475
parent 978 c8f4502c764f
child 980 aeb11522a44f
mod_firewall: The default value of the 'type' attribute on message stanzas is 'normal'
mod_firewall/conditions.lib.lua
--- 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)