# HG changeset patch # User Matthew Wild # Date 1735566779 0 # Node ID a54b94a3e9949c15721963b06d36830a708f2c2d # Parent bdbf12a2a854f076a5578349084da3e038639eda mod_anti_spam: Fix luacheck warning diff -r bdbf12a2a854 -r a54b94a3e994 mod_anti_spam/mod_anti_spam.lua --- a/mod_anti_spam/mod_anti_spam.lua Mon Dec 30 13:52:38 2024 +0000 +++ b/mod_anti_spam/mod_anti_spam.lua Mon Dec 30 13:52:59 2024 +0000 @@ -18,6 +18,8 @@ local count_spam_blocked = module:metric("counter", "anti_spam_blocked", "stanzas", "Stanzas blocked as spam", {"reason"}); +local hosts = prosody.hosts; + function block_spam(event, reason, action) event.spam_reason = reason; event.spam_action = action;