Diff

mod_firewall/conditions.lib.lua @ 2555:a9eb4d5566f3

mod_firewall: Add TO FULL JID
author Matthew Wild <mwild1@gmail.com>
date Thu, 23 Feb 2017 14:13:57 +0000
parent 2554:19bb4606013f
child 2563:2f1e25706f81
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 (.+)$");