changeset 2555:a9eb4d5566f3

mod_firewall: Add TO FULL JID
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Feb 2017 14:13:57 +0000
parents 19bb4606013f
children cc01a5bfcf3b
files mod_firewall/conditions.lib.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua	Thu Feb 23 14:11:31 2017 +0000
+++ b/mod_firewall/conditions.lib.lua	Thu Feb 23 14:13:57 2017 +0000
@@ -267,6 +267,10 @@
 	return "not not session.directed[from]", { "from" };
 end
 
+function condition_handlers.TO_FULL_JID()
+	return "not not full_sessions[to]", { "to" };
+end
+
 -- CHECK LIST: spammers contains $<@from>
 function condition_handlers.CHECK_LIST(list_condition)
 	local list_name, expr = list_condition:match("(%S+) contains (.+)$");