summaryrefslogtreecommitdiff
path: root/src/modules/m_dnsbl.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-16 15:40:23 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2009-04-16 15:40:23 +0000
commitf2813657c825033a18af138a6ea49f7561f4bccb (patch)
tree94036b08fd5fcbc1ced9679e831b80c49a67dc56 /src/modules/m_dnsbl.cpp
parent072022961d512f1aecd51ddcc0648c08b11e7ec1 (diff)
Correctly announce dnsbl hits, fixes bug #833 reported by Milliways.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11303 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
-rw-r--r--src/modules/m_dnsbl.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp
index 4598d6269..4a7a8931f 100644
--- a/src/modules/m_dnsbl.cpp
+++ b/src/modules/m_dnsbl.cpp
@@ -73,7 +73,7 @@ class DNSBLResolver : public Resolver
if(result.length())
{
unsigned int bitmask = 0, record = 0;
- bool show = false, match = false;
+ bool match = false;
in_addr resultip;
inet_aton(result.c_str(), &resultip);
@@ -154,10 +154,7 @@ class DNSBLResolver : public Resolver
break;
}
- if (show)
- {
- ServerInstance->SNO->WriteToSnoMask('A', "Connecting user %s detected as being on a DNS blacklist (%s) with result %d", them->GetFullRealHost().c_str(), ConfEntry->name.c_str(), bitmask);
- }
+ ServerInstance->SNO->WriteToSnoMask('A', "Connecting user %s detected as being on a DNS blacklist (%s) with result %d", them->GetFullRealHost().c_str(), ConfEntry->name.c_str(), bitmask);
}
else
ConfEntry->stats_misses++;