From 129dfe60ae37147fea2b5bc78aae539120d847bc Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 29 Nov 2012 18:53:54 +0100 Subject: m_cgiirc Don't resolve IPs when is true --- src/modules/m_cgiirc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3