diff options
| author | 2025-10-22 10:54:53 +0100 | |
|---|---|---|
| committer | 2025-10-22 10:54:53 +0100 | |
| commit | bee00e6c6181ff272f2229df55cb66f0157bf7cc (patch) | |
| tree | f298719a65246e523e56c48fd5c11b0677a951e1 /src/modules | |
| parent | Fix the /REMOVE parameter order compatibility logic. (diff) | |
Default <dnsbl:name> to the domain of the DNSBL.
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_dnsbl.cpp | 5 |
1 files changed, 1 insertions, 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<ConfigTag>& tag) { - name = tag->getString("name"); - if (name.empty()) - throw ModuleException(mod, "<dnsbl:name> can not be empty at " + tag->source.str()); - domain = tag->getString("domain"); if (domain.empty()) throw ModuleException(mod, "<dnsbl:domain> 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<unsigned int>(tag->getDuration("timeout", 0, 1, 60)); markuser = tag->getString("user", tag->getString("ident")); |
