Software /
code /
prosody-modules
Changeset
6125:a54b94a3e994
mod_anti_spam: Fix luacheck warning
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 30 Dec 2024 13:52:59 +0000 |
parents | 6124:bdbf12a2a854 |
children | 6126:4b1a4be43487 |
files | mod_anti_spam/mod_anti_spam.lua |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;