w00t
c61fb7544d
Use new logging in bancache
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8859 e03df62e-2008-0410-955e-edbf42e46eb7
2008-02-09 12:44:23 +00:00
w00t
4b122677df
Add an overridden AddHit to BanCacheManager, allowing the expiry time to be set.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8723 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16 21:43:03 +00:00
w00t
e4acbc95b8
Header update: 2007 -> 2008
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10 13:27:07 +00:00
w00t
66d15c4a15
Maybe BanCache works now?
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8643 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-06 01:39:53 +00:00
w00t
64fec23cc7
Add removal of BanCache entries on XLINE add/del, so we avoid out of date responses.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8641 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-06 01:31:43 +00:00
w00t
01d7b8e246
Add bancache expiry stuff, currently records expire 60 seconds after creation. Live, we will want perhaps an hour before expiry.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8640 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-06 01:15:58 +00:00
w00t
12ec2bc108
It compiles; ship it.
...
(add some sort of working skeleton for BanCacheManager::RemoveEntries().)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8600 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-17 23:59:39 +00:00
w00t
8bc8dc92e4
Add another BanCache stub. I'm not writing it yet as the storage of entries has not yet been finalised.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8595 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-15 15:59:05 +00:00
brain
91a3d1324b
Rehash method added which frees unused memory from the hash_map. Has a delete-safe iterator. see comments.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8542 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-05 19:52:16 +00:00
brain
5434e946ee
There are two forms of map::erase(), one erases by key the other by iterator.
...
if we erase by key, this involves a second search to find that key.
Fix to pass the iterator instead and avoid the second map search :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8488 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 00:54:07 +00:00
w00t
ae888e9cf9
Remove some unnecessary headers from places, commit working BanCacheManager skeleton. Work in progress, ignore it for now. Doesn't do anything, either.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8487 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04 00:44:28 +00:00
w00t
b104fdfe8a
This won't work yet.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8484 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-03 22:53:51 +00:00
w00t
841dc636d1
Add bancache.coo/h. Nothing in them, yet.
...
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8483 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-03 21:19:39 +00:00