diff --git a/modules/dns.cpp b/modules/dns.cpp index 175575225..b042960ef 100644 --- a/modules/dns.cpp +++ b/modules/dns.cpp @@ -1059,12 +1059,6 @@ class ModuleDNS final { MyManager manager; - Anope::string nameserver; - Anope::string ip; - int port; - - std::vector > notify; - public: ModuleDNS(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, EXTRA | VENDOR), manager(this) { @@ -1087,14 +1081,15 @@ public: { const auto &block = conf.GetModule(this); - nameserver = block.Get("nameserver", "127.0.0.1"); + auto nameserver = block.Get("nameserver", "127.0.0.1"); timeout = block.Get("timeout", "5"); - ip = block.Get("ip", "0.0.0.0"); - port = block.Get("port", "53"); + auto ip = block.Get("ip", "0.0.0.0"); + auto port = block.Get("port", "53"); admin = block.Get("admin", "admin@example.com"); nameservers = block.Get("nameservers", "ns1.example.com"); refresh = block.Get("refresh", "3600"); + std::vector > notify; for (int i = 0; i < block.CountBlock("notify"); ++i) { const auto &n = block.GetBlock("notify", i);