diff options
author | Sadie Powell <sadie@witchery.services> | 2020-09-29 12:07:06 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-09-29 12:07:06 +0100 |
commit | 2b30f894094b813a8fe32fc74158c294267b3eed (patch) | |
tree | fafc79ed6aa79a8effb9f909df6b291e30f572a6 /src/modules/m_dnsbl.cpp | |
parent | f5a716a70b4620d0610c69cbdcd2859199568755 (diff) |
Use the normal method for applying a default config in dnsbl.
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
-rw-r--r-- | src/modules/m_dnsbl.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index 267bb892e..f84351205 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -299,7 +299,7 @@ class ModuleDNSBL : public Module, public Stats::EventListener e->name = tag->getString("name"); e->ident = tag->getString("ident"); e->host = tag->getString("host"); - e->reason = tag->getString("reason"); + e->reason = tag->getString("reason", "Your IP has been blacklisted.", 1); e->domain = tag->getString("domain"); if (stdalgo::string::equalsci(tag->getString("type"), "bitmask")) @@ -341,13 +341,6 @@ class ModuleDNSBL : public Module, public Stats::EventListener } else { - if (e->reason.empty()) - { - std::string location = tag->getTagLocation(); - ServerInstance->SNO->WriteGlobalSno('d', "DNSBL(%s): empty reason, using defaults", location.c_str()); - e->reason = "Your IP has been blacklisted."; - } - /* add it, all is ok */ newentries.push_back(e); } |