From f2566ff550bc3516eb35fab76217384866de8bcb Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sun, 21 Apr 2013 05:41:09 +0100 Subject: Move to . --- src/modules/m_cgiirc.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_cgiirc.cpp b/src/modules/m_cgiirc.cpp index 9d87a01b3..bbb6151bd 100644 --- a/src/modules/m_cgiirc.cpp +++ b/src/modules/m_cgiirc.cpp @@ -182,7 +182,6 @@ class ModuleCgiIRC : public Module CommandWebirc cmd; LocalIntExt waiting; dynamic_reference DNS; - bool nouserdns; static void RecheckClass(LocalUser* user) { @@ -207,8 +206,9 @@ class ModuleCgiIRC : public Module user->host = user->dhost = user->GetIPString(); user->InvalidateCache(); RecheckClass(user); + // 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 || !DNS || nouserdns) + if (user->quitting || !DNS || user->MyClass->nouserdns) return; CGIResolver* r = new CGIResolver(*this->DNS, this, cmd.notify, newip, user, (was_pass ? "PASS" : "IDENT"), waiting); @@ -248,7 +248,6 @@ public: void OnRehash(User* user) { - nouserdns = ServerInstance->Config->ConfValue("performance")->getBool("nouserdns"); cmd.Hosts.clear(); // Do we send an oper notice when a CGI:IRC has their host changed? -- cgit v1.2.3