summaryrefslogtreecommitdiff
path: root/src/commands/cmd_hostname_lookup.cpp
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/commands/cmd_hostname_lookup.cpp
parent79e462c530a4617d688ca3c648ece2d8ebb7396a (diff)
Move <performance:nouserdns> to <connect:nouserdns>.
Diffstat (limited to 'src/commands/cmd_hostname_lookup.cpp')
-rw-r--r--src/commands/cmd_hostname_lookup.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/commands/cmd_hostname_lookup.cpp b/src/commands/cmd_hostname_lookup.cpp
index 04592c6e5..d43730b94 100644
--- a/src/commands/cmd_hostname_lookup.cpp
+++ b/src/commands/cmd_hostname_lookup.cpp
@@ -177,7 +177,6 @@ class UserResolver : public DNS::Request
class ModuleHostnameLookup : public Module
{
- bool nouserdns;
LocalIntExt dnsLookup;
LocalStringExt ptrHosts;
dynamic_reference<DNS::Manager> DNS;
@@ -198,18 +197,13 @@ class ModuleHostnameLookup : public Module
ServerInstance->Modules->AddService(this->dnsLookup);
ServerInstance->Modules->AddService(this->ptrHosts);
- Implementation i[] = { I_OnUserInit, I_OnCheckReady, I_OnRehash };
+ Implementation i[] = { I_OnUserInit, I_OnCheckReady };
ServerInstance->Modules->Attach(i, this, sizeof(i) / sizeof(Implementation));
}
- void OnRehash(User* user)
- {
- nouserdns = ServerInstance->Config->ConfValue("performance")->getBool("nouserdns");
- }
-
void OnUserInit(LocalUser *user)
{
- if (!DNS || nouserdns)
+ if (!DNS || user->MyClass->nouserdns)
{
user->WriteServ("NOTICE %s :*** Skipping host resolution (disabled by server administrator)", user->nick.c_str());
return;