aboutsummaryrefslogtreecommitdiff
path: root/src/bancache.cpp
Commit message (Expand)AuthorAgeFilesLines
* Fix various cases of the &* being next to the name instead of type.Gravatar Sadie Powell2022-09-291-2/+2
* Switch from NULL to nullptr.Gravatar Sadie Powell2022-07-221-4/+4
* Rewrite logging calls to use the new APIs.Gravatar Sadie Powell2022-05-011-4/+4
* Switch simple iterator loops to use range-based for loops.Gravatar Sadie Powell2021-04-071-2/+2
* Merge branch 'insp3' into master.Gravatar Sadie Powell2020-01-171-1/+5
|\
| * Update copyright headers.Gravatar InspIRCd Robot2020-01-111-1/+5
* | LogManager: remove fakederef.Gravatar Sadie Powell2019-02-071-4/+4
|/
* Pull in bancache.h from inspircd.hGravatar Attila Molnar2014-06-131-1/+0
* Move the definition of the BanCacheHit constructor into the source file from ...Gravatar Attila Molnar2014-06-131-0/+7
* Change allocation of BanCacheManager::BanHash to be physically part of the ob...Gravatar Attila Molnar2014-06-131-8/+7
* Remove $Core and $Mod* comments apart from $ModDep.Gravatar Peter Powell2013-07-041-2/+0
* Add LOG_ prefix to the log level enum values.Gravatar Peter Powell2013-04-121-4/+4
* BanCache: Move expiration code into a function, call it from RemoveEntries()Gravatar attilamolnar2013-04-101-11/+18
* BanCache: Remove BanCacheManager::RehashCache()•••The function was never called Gravatar attilamolnar2013-04-101-34/+0
* BanCache: Simplify BanCacheManager::RemoveEntries()Gravatar attilamolnar2013-04-101-26/+22
* BanCache: Remove BanCacheHit::IP field, and BanCacheManager::RemoveHit()•••The IP field was only used in RemoveHit(), RemoveHit() was only called from GetHit() Gravatar attilamolnar2013-04-101-25/+3
* BanCache: Do one hash lookup in BanCacheManager::AddHit()Gravatar attilamolnar2013-04-101-6/+3
* BanCache: Don't repeat ourselves, one BanCacheManager::AddHit() and one BanCa...Gravatar attilamolnar2013-04-101-14/+1
* Remove unnecessary assignment in BanCacheManager::RemoveEntriesGravatar attilamolnar2012-08-251-2/+0
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+15
* ...because every now and again, i have to do a massive commit.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-111-1/+1
* Valgrind now runs completely clean.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11916 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-10-191-0/+7
* Remove InspIRCd* parameters and fields•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-261-2/+2
* Update all wiki links to point to the new wiki. This was done automatically w...•••for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-03-151-1/+1
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-021-1/+1
* Second attempt at time() -> SI->Time(), now problems with the original were f...•••Thanks Namegduf! (Please test, all, valdebug etc, report odd behaviour/warnings!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10783 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-11-011-2/+2
* Revert earlier time() -> SI->Time() diff for now, this causes problems with d...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-231-2/+2
* Patch from Namegduf converting all instances (where possible) of time() -> Se...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-231-2/+2
* Remove last vestige of libircdfoo, by changing tag into a single identifier...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10076 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-07-291-1/+1
* Use new logging in bancache•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8859 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-02-091-5/+5
* 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 Gravatar w00t2008-01-161-0/+13
* Header update: 2007 -> 2008•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-101-1/+1
* Maybe BanCache works now?•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8643 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-061-2/+7
* Add removal of BanCache entries on XLINE add/del, so we avoid out of date res...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8641 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-061-1/+2
* Add bancache expiry stuff, currently records expire 60 seconds after creation...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8640 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-01-061-5/+24
* 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 Gravatar w00t2007-11-171-1/+30
* Add another BanCache stub. I'm not writing it yet as the storage of entries h...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8595 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-11-151-0/+5
* Rehash method added which frees unused memory from the hash_map. Has a delete...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8542 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2007-11-051-0/+22
* 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 Gravatar brain2007-11-041-1/+1
* Remove some unnecessary headers from places, commit working BanCacheManager s...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8487 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-11-041-0/+47
* This won't work yet.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8484 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-11-031-0/+3
* Add bancache.coo/h. Nothing in them, yet.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8483 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2007-11-031-0/+16