Diff

mod_firewall/conditions.lib.lua @ 2618:c6652d055ba3

mod_firewall: Add some more comments
author Matthew Wild <mwild1@gmail.com>
date Fri, 10 Mar 2017 10:36:17 +0000
parent 2594:1e1c929c1aa5
child 2857:ff1666716d10
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua	Tue Mar 14 12:35:56 2017 +0000
+++ b/mod_firewall/conditions.lib.lua	Fri Mar 10 10:36:17 2017 +0000
@@ -280,6 +280,7 @@
 	return "not not session.directed[from]", { "from" };
 end
 
+-- TO FULL JID?
 function condition_handlers.TO_FULL_JID()
 	return "not not full_sessions[to]", { "to" };
 end
@@ -304,6 +305,7 @@
 	return ("scan_list(list_%s, %s)"):format(list_name, "tokens_"..search_name.."_"..pattern_name), { "scan_list", "tokens:"..search_name.."-"..pattern_name, "list:"..list_name };
 end
 
+-- COUNT: lines in body < 10
 local valid_comp_ops = { [">"] = ">", ["<"] = "<", ["="] = "==", ["=="] = "==", ["<="] = "<=", [">="] = ">=" };
 function condition_handlers.COUNT(count_expression)
 	local pattern_name, search_name, comparator_expression = count_expression:match("(%S+) in (%S+) (.+)$");