aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_dnsbl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
-rw-r--r--src/modules/m_dnsbl.cpp14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp
index 57243e66b..ca8c6f10b 100644
--- a/src/modules/m_dnsbl.cpp
+++ b/src/modules/m_dnsbl.cpp
@@ -419,12 +419,20 @@ class ModuleDNSBL : public Module, public Stats::EventListener
std::string* match = nameExt.get(user);
if (!match)
+ {
+ ServerInstance->Logs.Log("CONNECTCLASS", LOG_DEBUG, "The %s connect class is not suitable as it requires a DNSBL mark",
+ myclass->GetName().c_str());
return MOD_RES_DENY;
+ }
- if (InspIRCd::Match(*match, dnsbl))
- return MOD_RES_PASSTHRU;
+ if (!InspIRCd::Match(*match, dnsbl))
+ {
+ ServerInstance->Logs.Log("CONNECTCLASS", LOG_DEBUG, "The %s connect class is not suitable as the DNSBL mark (%s) does not match %s",
+ myclass->GetName().c_str(), match->c_str(), dnsbl.c_str());
+ return MOD_RES_DENY;
+ }
- return MOD_RES_DENY;
+ return MOD_RES_PASSTHRU;
}
ModResult OnCheckReady(LocalUser *user) override