# HG changeset patch # User Matthew Wild # Date 1735472976 0 # Node ID 255ab0b81f1422a8addf5df4080dd3e54f617249 # Parent bd3ff802d8836acd98c3582f3b2e32f7f6ec1484 mod_anti_spam: Fix traceback when no anti-spam services defined in config (thanks mirux) diff -r bd3ff802d883 -r 255ab0b81f14 mod_anti_spam/mod_anti_spam.lua --- 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", {