summaryrefslogtreecommitdiff
path: root/src/commands/cmd_hostname_lookup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/cmd_hostname_lookup.cpp')
-rw-r--r--src/commands/cmd_hostname_lookup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/cmd_hostname_lookup.cpp b/src/commands/cmd_hostname_lookup.cpp
index 1352f0e78..f352443d0 100644
--- a/src/commands/cmd_hostname_lookup.cpp
+++ b/src/commands/cmd_hostname_lookup.cpp
@@ -199,7 +199,7 @@ class ModuleHostnameLookup : public Module
void OnUserInit(LocalUser *user)
{
- if (!DNS || user->MyClass->nouserdns)
+ if (!DNS || !user->MyClass->resolvehostnames)
{
user->WriteNotice("*** Skipping host resolution (disabled by server administrator)");
return;