]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/coremods/core_hostname_lookup.cpp
core_user Deduplicate code that calls the OnUserRegister hook
[user/henk/code/inspircd.git] / src / coremods / core_hostname_lookup.cpp
index 3d3e9703ae2c6e5ab4a5cfa818de582e3d549980..7f3f2314960062763364430966ea1b963a7f8345 100644 (file)
@@ -170,7 +170,7 @@ 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->statsDnsBad++;
+                       ServerInstance->stats.DnsBad++;
                }
        }
 };
@@ -215,7 +215,7 @@ 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->statsDnsBad++;
+                       ServerInstance->stats.DnsBad++;
                }
        }