Error if a user doesn't specify any DNSBL records to match.

This commit is contained in:
Sadie Powell 2025-02-27 22:48:54 +00:00
parent 73ac91e4ed
commit 72ff58f7ed

View File

@ -159,6 +159,9 @@ public:
records.set(record);
}
if (records.none())
throw ModuleException(mod, "<dnsbl:records> can not be empty at " + tag->source.str());
}
else
{