aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_dnsbl.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2020-11-03 19:40:42 +0000
committerGravatar Sadie Powell2020-11-03 19:54:13 +0000
commit373bc208ff8f7eceecd944114cd729b5a348d918 (patch)
tree3fc6cc31e70a00cb9670b3724e0c94256f763385 /src/modules/m_dnsbl.cpp
parentReplace 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.cpp8
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
{