summaryrefslogtreecommitdiff
path: root/src/bancache.cpp
AgeCommit message (Collapse)Author
2020-01-11Update copyright headers.InspIRCd Robot
2014-06-13Pull in bancache.h from inspircd.hAttila Molnar
2014-06-13Move the definition of the BanCacheHit constructor into the source file from ↵Attila Molnar
the header
2014-06-13Change allocation of BanCacheManager::BanHash to be physically part of the ↵Attila Molnar
object containing it
2013-07-04Remove $Core and $Mod* comments apart from $ModDep.Peter Powell
2013-04-12Add LOG_ prefix to the log level enum values.Peter Powell
2013-04-10BanCache: Move expiration code into a function, call it from RemoveEntries()attilamolnar
2013-04-10BanCache: Remove BanCacheManager::RehashCache()attilamolnar
The function was never called
2013-04-10BanCache: Simplify BanCacheManager::RemoveEntries()attilamolnar
2013-04-10BanCache: Remove BanCacheHit::IP field, and BanCacheManager::RemoveHit()attilamolnar
The IP field was only used in RemoveHit(), RemoveHit() was only called from GetHit()
2013-04-10BanCache: Do one hash lookup in BanCacheManager::AddHit()attilamolnar
2013-04-10BanCache: Don't repeat ourselves, one BanCacheManager::AddHit() and one ↵attilamolnar
BanCacheHit constructor is enough
2012-08-25Remove unnecessary assignment in BanCacheManager::RemoveEntriesattilamolnar
2012-04-19Replace copyright headers with headers granting specific authors copyrightRobby-
2010-01-11...because every now and again, i have to do a massive commit.brain
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7
2009-10-19Valgrind now runs completely clean.danieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11916 e03df62e-2008-0410-955e-edbf42e46eb7
2009-09-26Remove InspIRCd* parameters and fieldsdanieldg
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11763 e03df62e-2008-0410-955e-edbf42e46eb7
2009-03-15Update all wiki links to point to the new wiki. This was done automatically ↵psychon
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
2009-01-02Update copyrights for 2009.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7
2008-11-01Second attempt at time() -> SI->Time(), now problems with the original were ↵w00t
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
2008-10-23Revert earlier time() -> SI->Time() diff for now, this causes problems with ↵w00t
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
2008-10-23Patch from Namegduf converting all instances (where possible) of time() -> ↵w00t
ServerInstance->Time(). Thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10691 e03df62e-2008-0410-955e-edbf42e46eb7
2008-07-29Remove last vestige of libircdfoo, by changing tag into a single ↵w00t
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
2008-02-09Use new logging in bancachew00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8859 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-16Add an overridden AddHit to BanCacheManager, allowing the expiry time to be set.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8723 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-10Header update: 2007 -> 2008w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8694 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-06Maybe BanCache works now?w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8643 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-06Add removal of BanCache entries on XLINE add/del, so we avoid out of date ↵w00t
responses. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8641 e03df62e-2008-0410-955e-edbf42e46eb7
2008-01-06Add bancache expiry stuff, currently records expire 60 seconds after ↵w00t
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
2007-11-17It compiles; ship it.w00t
(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-15Add another BanCache stub. I'm not writing it yet as the storage of entries ↵w00t
has not yet been finalised. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8595 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-05Rehash method added which frees unused memory from the hash_map. Has a ↵brain
delete-safe iterator. see comments. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8542 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-04There are two forms of map::erase(), one erases by key the other by iterator.brain
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-04Remove some unnecessary headers from places, commit working BanCacheManager ↵w00t
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-03This won't work yet.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8484 e03df62e-2008-0410-955e-edbf42e46eb7
2007-11-03Add bancache.coo/h. Nothing in them, yet.w00t
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8483 e03df62e-2008-0410-955e-edbf42e46eb7