summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-11-29 18:53:54 +0100
committerattilamolnar <attilamolnar@hush.com>2012-11-29 20:26:17 +0100
commit129dfe60ae37147fea2b5bc78aae539120d847bc (patch)
tree00337b4eca51e923f360f6c42a1b1291f8c5aa6e /src
parent6e55cd2003750a7f69866128cfd44409676c9a1e (diff)
m_cgiirc Don't resolve IPs when <performance:nouserdns> is true
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_cgiirc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp
index 8e46a5d4d..22a5243b8 100644
--- a/src/modules/m_cgiirc.cpp
+++ b/src/modules/m_cgiirc.cpp
@@ -193,8 +193,8 @@ class ModuleCgiIRC : public Module
user->host = user->dhost = user->GetIPString();
user->InvalidateCache();
RecheckElineAndClass(user);
- // Don't create the resolver if the core couldn't put the user in a connect class
- if (user->quitting)
+ // Don't create the resolver if the core couldn't put the user in a connect class or when dns is disabled
+ if (user->quitting || ServerInstance->Config->NoUserDns)
return;
try