]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/dns.cpp
Replace OnAccessCheck with OnPreMode to remove a number of redundant checks
[user/henk/code/inspircd.git] / src / dns.cpp
index 4d06e02ab7d0ad09f8e7a948c3eca394cc9c0a85..94a01e64c9cedbf60bfa70c3dfaee096bf07adce 100644 (file)
@@ -34,7 +34,6 @@ looks like this, walks like this or tastes like this.
 #include "inspircd_se_config.h"
 #endif
 
-#include "dns.h"
 #include "inspircd.h"
 #include "socketengine.h"
 #include "configreader.h"
@@ -131,7 +130,8 @@ class RequestTimeout : public Timer
        }
        ~RequestTimeout()
        {
-               Tick(0);
+               if (ServerInstance->Res)
+                       Tick(0);
        }
 
        void Tick(time_t)