From f2813657c825033a18af138a6ea49f7561f4bccb Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 16 Apr 2009 15:40:23 +0000 Subject: 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 --- src/modules/m_dnsbl.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') 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++; -- cgit v1.2.3