}
catch (Exception& ex)
{
- ServerInstance->Logs->Log("RESOLVER", LOG_DEBUG, std::string(ex.GetReason()));
+ ServerInstance->Logs->Log(MODNAME, LOG_DEBUG, ex.GetReason());
return;
}
{
}
- void init()
- {
- Implementation i[] = { I_OnRehash, I_OnUnloadModule };
- ServerInstance->Modules->Attach(i, this, sizeof(i) / sizeof(Implementation));
-
- 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");