diff options
| author | 2020-11-03 19:40:42 +0000 | |
|---|---|---|
| committer | 2020-11-03 19:54:13 +0000 | |
| commit | 373bc208ff8f7eceecd944114cd729b5a348d918 (patch) | |
| tree | 3fc6cc31e70a00cb9670b3724e0c94256f763385 /src/modules/m_dnsbl.cpp | |
| parent | Replace ConfigTag::create with a public constructor. (diff) | |
Move FilePosition to fileutils.h and use in ConfigTag.
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
| -rw-r--r-- | src/modules/m_dnsbl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index c05161232..57243e66b 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -317,19 +317,19 @@ class ModuleDNSBL : public Module, public Stats::EventListener /* yeah, logic here is a little messy */ if ((e->bitmask <= 0) && (DNSBLConfEntry::A_BITMASK == e->type)) { - throw ModuleException("Invalid <dnsbl:bitmask> at " + tag->getTagLocation()); + throw ModuleException("Invalid <dnsbl:bitmask> at " + tag->source.str()); } else if (e->name.empty()) { - throw ModuleException("Empty <dnsbl:name> at " + tag->getTagLocation()); + throw ModuleException("Empty <dnsbl:name> at " + tag->source.str()); } else if (e->domain.empty()) { - throw ModuleException("Empty <dnsbl:domain> at " + tag->getTagLocation()); + throw ModuleException("Empty <dnsbl:domain> at " + tag->source.str()); } else if (e->banaction == DNSBLConfEntry::I_UNKNOWN) { - throw ModuleException("Unknown <dnsbl:action> at " + tag->getTagLocation()); + throw ModuleException("Unknown <dnsbl:action> at " + tag->source.str()); } else { |
