]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/modules/dns.h
Use FindUUID in place of FindNick in places that only get a UUID.
[user/henk/code/inspircd.git] / include / modules / dns.h
index 61abd7144288c5a9c904645f900a87521e3eb9c1..d371a62ea92c9abe858a13d6d52ab2f7b6a656f7 100644 (file)
@@ -146,6 +146,7 @@ namespace DNS
                virtual void Process(Request* req) = 0;
                virtual void RemoveRequest(Request* req) = 0;
                virtual std::string GetErrorStr(Error) = 0;
+               virtual std::string GetTypeStr(QueryType) = 0;
        };
 
        /** A DNS query.
@@ -164,7 +165,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 +192,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;