From bee00e6c6181ff272f2229df55cb66f0157bf7cc Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 22 Oct 2025 10:54:53 +0100 Subject: Default to the domain of the DNSBL. --- src/modules/m_dnsbl.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 3eb8b5154..c54f8b591 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -122,10 +122,6 @@ public: DNSBLEntry(const Module* mod, const std::shared_ptr& tag) { - name = tag->getString("name"); - if (name.empty()) - throw ModuleException(mod, " can not be empty at " + tag->source.str()); - domain = tag->getString("domain"); if (domain.empty()) throw ModuleException(mod, " can not be empty at " + tag->source.str()); @@ -172,6 +168,7 @@ public: + tag->source.str()); } + name = tag->getString("name", domain, 1); reason = tag->getString("reason", "Your IP (%ip%) has been blacklisted by the %dnsbl% DNSBL.", 1, ServerInstance->Config->Limits.MaxLine); timeout = static_cast(tag->getDuration("timeout", 0, 1, 60)); markuser = tag->getString("user", tag->getString("ident")); -- cgit v1.3.1-10-gc9f91