aboutsummaryrefslogtreecommitdiff
path: root/src/bancache.cpp
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | | | the header
* Change allocation of BanCacheManager::BanHash to be physically part of the ↵Gravatar Attila Molnar2014-06-131-8/+7
| | | | object containing it
* 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()Gravatar attilamolnar2013-04-101-34/+0
| | | | The function was never called
* BanCache: Simplify BanCacheManager::RemoveEntries()Gravatar attilamolnar2013-04-101-26/+22
|
* BanCache: Remove BanCacheHit::IP field, and BanCacheManager::RemoveHit()Gravatar attilamolnar2013-04-101-25/+3
| | | | The IP field was only used in RemoveHit(), RemoveHit() was only called from GetHit()
* BanCache: Do one hash lookup in BanCacheManager::AddHit()Gravatar attilamolnar2013-04-101-6/+3
|
* BanCache: Don't repeat ourselves, one BanCacheManager::AddHit() and one ↵Gravatar attilamolnar2013-04-101-14/+1
| | | | BanCacheHit constructor is enough
* 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.Gravatar brain2010-01-111-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
* Valgrind now runs completely clean.Gravatar danieldg2009-10-191-0/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11916 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove InspIRCd* parameters and fieldsGravatar danieldg2009-09-261-2/+2
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
* Update all wiki links to point to the new wiki. This was done automatically ↵Gravatar psychon2009-03-151-1/+1
| | | | | | | | | with the following command, only .Makefile.inc got some indent fixups by hand. 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
* Update copyrights for 2009.Gravatar w00t2009-01-021-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
* Second attempt at time() -> SI->Time(), now problems with the original were ↵Gravatar w00t2008-11-011-2/+2
| | | | | | | | | fixed. (SI::TIME was not initialised). 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
* Revert earlier time() -> SI->Time() diff for now, this causes problems with ↵Gravatar w00t2008-10-231-2/+2
| | | | | | dns.cpp in mysterious ways.. seemingly a bad pointer there somehow..? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10695 e03df62e-2008-0410-955e-edbf42e46eb7
* Patch from Namegduf converting all instances (where possible) of time() -> ↵Gravatar w00t2008-10-231-2/+2
| | | | | | ServerInstance->Time(). Thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7
* Remove last vestige of libircdfoo, by changing tag into a single ↵Gravatar w00t2008-07-291-1/+1
| | | | | | identifier marking object as requiring compilation into a .o (minor commit) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10076 e03df62e-2008-0410-955e-edbf42e46eb7
* Use new logging in bancacheGravatar w00t2008-02-091-5/+5
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8859 e03df62e-2008-0410-955e-edbf42e46eb7
* Add an overridden AddHit to BanCacheManager, allowing the expiry time to be set.Gravatar w00t2008-01-161-0/+13
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8723 e03df62e-2008-0410-955e-edbf42e46eb7
* Header update: 2007 -> 2008Gravatar w00t2008-01-101-1/+1
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
* Maybe BanCache works now?Gravatar w00t2008-01-061-2/+7
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8643 e03df62e-2008-0410-955e-edbf42e46eb7
* Add removal of BanCache entries on XLINE add/del, so we avoid out of date ↵Gravatar w00t2008-01-061-1/+2
| | | | | | responses. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8641 e03df62e-2008-0410-955e-edbf42e46eb7
* Add bancache expiry stuff, currently records expire 60 seconds after ↵Gravatar w00t2008-01-061-5/+24
| | | | | | 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
* It compiles; ship it.Gravatar w00t2007-11-171-1/+30
| | | | | | (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
* Add another BanCache stub. I'm not writing it yet as the storage of entries ↵Gravatar w00t2007-11-151-0/+5
| | | | | | has not yet been finalised. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8595 e03df62e-2008-0410-955e-edbf42e46eb7
* Rehash method added which frees unused memory from the hash_map. Has a ↵Gravatar brain2007-11-051-0/+22
| | | | | | delete-safe iterator. see comments. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8542 e03df62e-2008-0410-955e-edbf42e46eb7
* There are two forms of map::erase(), one erases by key the other by iterator.Gravatar brain2007-11-041-1/+1
| | | | | | | | 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
* Remove some unnecessary headers from places, commit working BanCacheManager ↵Gravatar w00t2007-11-041-0/+47
| | | | | | 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
* This won't work yet.Gravatar w00t2007-11-031-0/+3
| | | | git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8484 e03df62e-2008-0410-955e-edbf42e46eb7
* Add bancache.coo/h. Nothing in them, yet.Gravatar w00t2007-11-031-0/+16
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8483 e03df62e-2008-0410-955e-edbf42e46eb7