Changeset

5534:7b4e0c3642bf

mod_firewall: Fix inverted logic of 'FROM FULL JID?'
author Matthew Wild <mwild1@gmail.com>
date Thu, 08 Jun 2023 13:04:19 +0100
parents 5533:09311a8a3cfa
children 5535:eeccec0955a1
files mod_firewall/conditions.lib.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua	Thu Jun 08 12:20:34 2023 +0100
+++ b/mod_firewall/conditions.lib.lua	Thu Jun 08 13:04:19 2023 +0100
@@ -68,7 +68,7 @@
 end
 
 function condition_handlers.FROM_FULL_JID()
-	return compile_jid_match_part("from_resource", nil), { "split_from" };
+	return "not "..compile_jid_match_part("from_resource", nil), { "split_from" };
 end
 
 function condition_handlers.FROM_EXACTLY(from)