]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_hostname_lookup.cpp
Replace range() with min and max arguments on getInt().
[user/henk/code/inspircd.git] / src / commands / cmd_hostname_lookup.cpp
index 71a32e610102d06dda98aecae1b5fbdb2fa2a6e3..f352443d0a501f5926d1223e1a91ab5b65309ca4 100644 (file)
@@ -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;