Software /
code /
prosody-modules
Changeset
6121:255ab0b81f14
mod_anti_spam: Fix traceback when no anti-spam services defined in config (thanks mirux)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 29 Dec 2024 11:49:36 +0000 |
parents | 6120:bd3ff802d883 |
children | 6122:15f6f1566bdb |
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 Sat Dec 28 21:02:08 2024 +0000 +++ b/mod_anti_spam/mod_anti_spam.lua Sun Dec 29 11:49:36 2024 +0000 @@ -103,7 +103,7 @@ -- Set up RTBLs -local anti_spam_services = module:get_option_array("anti_spam_services"); +local anti_spam_services = module:get_option_array("anti_spam_services", {}); for _, rtbl_service_jid in ipairs(anti_spam_services) do new_rtbl_subscription(rtbl_service_jid, "spam_source_domains", {