summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_hostname_lookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coremods/core_hostname_lookup.cpp b/src/coremods/core_hostname_lookup.cpp
index 89c361555..db9063ff6 100644
--- a/src/coremods/core_hostname_lookup.cpp
+++ b/src/coremods/core_hostname_lookup.cpp
@@ -177,7 +177,7 @@ class ModuleHostnameLookup : public Module
{
// If core_dns is not loaded or hostname resolution is disabled for the user's
// connect class then the logic in this function does not apply.
- if (!DNS || !user->MyClass->resolvehostnames)
+ if (!DNS || user->quitting || !user->MyClass->resolvehostnames)
return;
// Clients can't have a DNS hostname if they aren't connected via IPv4 or IPv6.