diff options
author | Sadie Powell <sadie@witchery.services> | 2020-11-19 19:21:10 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2020-11-20 12:10:47 +0000 |
commit | d4685e02b55229e0ca5068b839c87b5a80180f33 (patch) | |
tree | 76a9f59f6d9b103eb63397ceb26c8245b15b6a5f /src/coremods | |
parent | cc5965c45d2bccb6bd440aafb6bebfb98520ddd6 (diff) |
Avoid doing "IP changed" event stuff on quitting users.
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_hostname_lookup.cpp | 2 |
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. |