Changeset

6128:8ef4d825ad50

mod_anti_spam: Fix stanza type check in presence handler This was letting presence subscriptions slip through the net.
author Matthew Wild <mwild1@gmail.com>
date Tue, 31 Dec 2024 21:38:14 +0000
parents 6127:559648c7c8d6
children 6129:64b4ede37da1
files mod_anti_spam/mod_anti_spam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_anti_spam/mod_anti_spam.lua	Tue Dec 31 15:17:37 2024 +0000
+++ b/mod_anti_spam/mod_anti_spam.lua	Tue Dec 31 21:38:14 2024 +0000
@@ -172,7 +172,7 @@
 end, 500);
 
 module:hook("presence/bare", function (event)
-	if event.stanza.type ~= "subscribe" then
+	if event.stanza.attr.type ~= "subscribe" then
 		return;
 	end