]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_dnsbl.cpp
Fix sending DNSBL error snotices when a user isn't DNSBLed.
[user/henk/code/inspircd.git] / src / modules / m_dnsbl.cpp
index 838c2c5c6a6d6981b1ccef5c8d69c0de14d5242e..7b88bc9619fce50b5f179a0e557c45311db08244 100644 (file)
@@ -218,7 +218,10 @@ class DNSBLResolver : public DNS::Request
                        countExt.set(them, i - 1);
 
                if (q->error == DNS::ERROR_NO_RECORDS || q->error == DNS::ERROR_DOMAIN_NOT_FOUND)
+               {
                        ConfEntry->stats_misses++;
+                       return;
+               }
 
                ServerInstance->SNO->WriteGlobalSno('d', "An error occurred whilst checking whether %s (%s) is on the '%s' DNS blacklist: %s",
                        them->GetFullRealHost().c_str(), them->GetIPString().c_str(), ConfEntry->name.c_str(), this->manager->GetErrorStr(q->error).c_str());