diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-11-29 18:53:54 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-29 20:26:17 +0100 |
commit | 129dfe60ae37147fea2b5bc78aae539120d847bc (patch) | |
tree | 00337b4eca51e923f360f6c42a1b1291f8c5aa6e /src/modules | |
parent | 6e55cd2003750a7f69866128cfd44409676c9a1e (diff) |
m_cgiirc Don't resolve IPs when <performance:nouserdns> is true
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_cgiirc.cpp | 4 |
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 |