From 373bc208ff8f7eceecd944114cd729b5a348d918 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 3 Nov 2020 19:40:42 +0000 Subject: Move FilePosition to fileutils.h and use in ConfigTag. --- src/modules/m_dnsbl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_dnsbl.cpp') 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 at " + tag->getTagLocation()); + throw ModuleException("Invalid at " + tag->source.str()); } else if (e->name.empty()) { - throw ModuleException("Empty at " + tag->getTagLocation()); + throw ModuleException("Empty at " + tag->source.str()); } else if (e->domain.empty()) { - throw ModuleException("Empty at " + tag->getTagLocation()); + throw ModuleException("Empty at " + tag->source.str()); } else if (e->banaction == DNSBLConfEntry::I_UNKNOWN) { - throw ModuleException("Unknown at " + tag->getTagLocation()); + throw ModuleException("Unknown at " + tag->source.str()); } else { -- cgit v1.3.1-10-gc9f91