summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-04-21 05:41:09 +0100
committerPeter Powell <petpow@saberuk.com>2013-04-27 05:59:54 +0100
commitf2566ff550bc3516eb35fab76217384866de8bcb (patch)
tree06b001530ef64b7a78d271197cf838a2760edfef /src/modules
parent79e462c530a4617d688ca3c648ece2d8ebb7396a (diff)
Move <performance:nouserdns> to <connect:nouserdns>.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cgiirc.cpp5
1 files changed, 2 insertions, 3 deletions
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::Manager> 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?