Diff

mod_firewall/conditions.lib.lua @ 4608:4e8fa75cc678

mod_firewall: Remove reliance on full_sessions being a global While it exists as a global now, we want to move away from these globals eventually.
author Kim Alvefur <zash@zash.se>
date Wed, 30 Jun 2021 14:48:59 +0200
parent 3982:ab065ff4628b
child 5002:84997bc3f92e
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua	Wed Jun 30 14:33:06 2021 +0200
+++ b/mod_firewall/conditions.lib.lua	Wed Jun 30 14:48:59 2021 +0200
@@ -304,7 +304,7 @@
 
 -- TO FULL JID?
 function condition_handlers.TO_FULL_JID()
-	return "not not full_sessions[to]", { "to" };
+	return "not not full_sessions[to]", { "to", "full_sessions" };
 end
 
 -- CHECK LIST: spammers contains $<@from>