]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules/dns.h
Add the override keyword in places that it is missing.
[user/henk/code/inspircd.git] / include / modules / dns.h
index 61abd7144288c5a9c904645f900a87521e3eb9c1..3db651798e0028267b8f91279a353ab4dbb382ba 100644 (file)
@@ -164,7 +164,7 @@ namespace DNS
                Module* const creator;
 
                Request(Manager* mgr, Module* mod, const std::string& addr, QueryType qt, bool usecache = true)
-                       : Timer((ServerInstance->Config->dns_timeout ? ServerInstance->Config->dns_timeout : 5))
+                       : Timer(ServerInstance->Config->ConfValue("dns")->getDuration("timeout", 5, 1))
                        , manager(mgr)
                        , question(addr, qt)
                        , use_cache(usecache)
@@ -191,7 +191,7 @@ namespace DNS
                /** Used to time out the query, calls OnError and asks the TimerManager
                 * to delete this request
                 */
-               bool Tick(time_t now)
+               bool Tick(time_t now) CXX11_OVERRIDE
                {
                        Query rr(this->question);
                        rr.error = ERROR_TIMEDOUT;