summaryrefslogtreecommitdiff
path: root/include/dns.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-08 18:42:13 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-08 18:42:13 +0000
commit2fe4636fa44ad48b801d0e38b892c0e47998327d (patch)
treeeceb91cda854b4fd8ab00e33c0d327ed88c33e01 /include/dns.h
parenta3bda51ef1095c92499b69a14273b4adf962ab1e (diff)
Add repeating timers, and make an hourly prune of the dns cache, otherwise a cache entry might not be cleared until a user with that ip comes back!
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6264 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/dns.h')
-rw-r--r--include/dns.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dns.h b/include/dns.h
index 8011d069c..562a49322 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -326,6 +326,8 @@ class DNS : public EventHandler
*/
dnscache* cache;
+ class CacheTimer* PruneTimer;
+
/**
* Build a dns packet payload
*/
@@ -450,6 +452,7 @@ class DNS : public EventHandler
void DelCache(const std::string &source);
int ClearCache();
+ int PruneCache();
};
#endif