]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
core_hostname_lookup Don't adjust DnsBad stats
authorAttila Molnar <attilamolnar@hush.com>
Fri, 1 May 2015 14:43:02 +0000 (16:43 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Fri, 1 May 2015 14:43:02 +0000 (16:43 +0200)
This is done by core_dns

src/coremods/core_hostname_lookup.cpp

index 11cc5bbba8e0fdfaf8e0be034977af517c08d785..f6e0539c1f664465e934fc230309b77855f5dc20 100644 (file)
@@ -170,7 +170,6 @@ class UserResolver : public DNS::Request
                {
                        bound_user->WriteNotice("*** Could not resolve your hostname: " + this->manager->GetErrorStr(query->error) + "; using your IP address (" + bound_user->GetIPString() + ") instead.");
                        dl->set(bound_user, 0);
-                       ServerInstance->stats.DnsBad++;
                }
        }
 };
@@ -215,7 +214,6 @@ class ModuleHostnameLookup : public Module
                        this->dnsLookup.set(user, 0);
                        delete res_reverse;
                        ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, "Error in resolver: " + e.GetReason());
-                       ServerInstance->stats.DnsBad++;
                }
        }