# HG changeset patch # User Matthew Wild # Date 1737109954 0 # Node ID 160d1bcfe3412bd667966d349d89d609c4339948 # Parent ef7bf4215cb3a5d15425440770532df299cbc44a mod_anti_spam: Optimization to avoid needless string concatenation diff -r ef7bf4215cb3 -r 160d1bcfe341 mod_anti_spam/mod_anti_spam.lua --- a/mod_anti_spam/mod_anti_spam.lua Fri Jan 17 10:31:41 2025 +0000 +++ b/mod_anti_spam/mod_anti_spam.lua Fri Jan 17 10:32:34 2025 +0000 @@ -72,7 +72,7 @@ local from_user, from_host = jid_split(from_jid); -- Allow all messages from your own jid - if from_jid == to_user.."@"..to_host then + if from_user == to_user and from_host == to_host then return false; -- Pass through end if to_resource and stanza.attr.type == "groupchat" then