Diff

mod_firewall/conditions.lib.lua @ 6208:e20901443eae draft

Merge
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Mon, 17 Mar 2025 23:42:11 +0700
parent 5816:e304e19536f2
line wrap: on
line diff
--- a/mod_firewall/conditions.lib.lua	Wed Feb 26 19:36:35 2025 +0700
+++ b/mod_firewall/conditions.lib.lua	Mon Mar 17 23:42:11 2025 +0700
@@ -123,7 +123,7 @@
 end
 
 function condition_handlers.SUBSCRIBED()
-	return "(bare_to == bare_from or to_node and rostermanager.is_contact_subscribed(to_node, to_host, bare_from))",
+	return "(bare_to == bare_from or to_node and rostermanager.is_user_subscribed(to_node, to_host, bare_from))",
 	       { "rostermanager", "split_to", "bare_to", "bare_from" };
 end