]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_dns.cpp
Add the ability to have multiple SSL profiles
[user/henk/code/inspircd.git] / src / commands / cmd_dns.cpp
index 2b7114128858ef9d01ed8ae8af8c87622784619d..07ade381ab3fb94dd5a481173ebaec791104f2b9 100644 (file)
@@ -580,7 +580,7 @@ class MyManager : public Manager, public Timer, public EventHandler
                }
                catch (Exception& ex)
                {
-                       ServerInstance->Logs->Log("RESOLVER", LOG_DEBUG, std::string(ex.GetReason()));
+                       ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, ex.GetReason());
                        return;
                }
 
@@ -795,14 +795,7 @@ 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");