diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/coremods/core_hostname_lookup.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_httpd.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/coremods/core_hostname_lookup.cpp b/src/coremods/core_hostname_lookup.cpp index 11cc5bbba..f6e0539c1 100644 --- a/src/coremods/core_hostname_lookup.cpp +++ b/src/coremods/core_hostname_lookup.cpp @@ -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++; } } diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index aa83b120c..760647d47 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -409,7 +409,7 @@ class ModuleHttpServer : public Module void OnUnloadModule(Module* mod) { - for (insp::intrusive_list<HttpServerSocket>::const_iterator i = sockets.begin(); i != sockets.end(); ++i) + for (insp::intrusive_list<HttpServerSocket>::const_iterator i = sockets.begin(); i != sockets.end(); ) { HttpServerSocket* sock = *i; ++i; |