X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_hostname_lookup.cpp;h=f352443d0a501f5926d1223e1a91ab5b65309ca4;hb=86f650e6b8c969b31fae65ea1143644723279b82;hp=71a32e610102d06dda98aecae1b5fbdb2fa2a6e3;hpb=3e105c6311c23787ff54388c8d21c8ac1a01fd57;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_hostname_lookup.cpp b/src/commands/cmd_hostname_lookup.cpp index 71a32e610..f352443d0 100644 --- a/src/commands/cmd_hostname_lookup.cpp +++ b/src/commands/cmd_hostname_lookup.cpp @@ -193,17 +193,13 @@ class ModuleHostnameLookup : public Module void init() { - OnRehash(NULL); ServerInstance->Modules->AddService(this->dnsLookup); ServerInstance->Modules->AddService(this->ptrHosts); - - Implementation i[] = { I_OnUserInit, I_OnCheckReady }; - ServerInstance->Modules->Attach(i, this, sizeof(i) / sizeof(Implementation)); } void OnUserInit(LocalUser *user) { - if (!DNS || user->MyClass->nouserdns) + if (!DNS || !user->MyClass->resolvehostnames) { user->WriteNotice("*** Skipping host resolution (disabled by server administrator)"); return;