mod_firewall: Add some more comments
authorMatthew Wild <mwild1@gmail.com>
Fri, 10 Mar 2017 10:36:17 +0000
changeset 2622 c6652d055ba3
parent 2621 7c3a1688e385
child 2623 1e4bbff0a6fd
mod_firewall: Add some more comments
mod_firewall/conditions.lib.lua
--- 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+) (.+)$");