]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_dns.cpp
Replace OnRehash() with ReadConfig() that is called on boot, on module load and on...
[user/henk/code/inspircd.git] / src / commands / cmd_dns.cpp
index 2b7114128858ef9d01ed8ae8af8c87622784619d..f97d687832f0fefeee3a5a77c02bc1b93d63b5a4 100644 (file)
@@ -798,11 +798,9 @@ class ModuleDNS : public Module
        void init()
        {
                ServerInstance->Modules->AddService(this->manager);
-
-               this->OnRehash(NULL);
        }
 
-       void OnRehash(User* user)
+       void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE
        {
                std::string oldserver = DNSServer;
                DNSServer = ServerInstance->Config->ConfValue("dns")->getString("server");