git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8859
e03df62e-2008-0410-955e-
edbf42e46eb7
{
if (time(NULL) > i->second->Expiry)
{
{
if (time(NULL) > i->second->Expiry)
{
- ServerInstance->Log(DEBUG, "Hit on " + ip + " is out of date, removing!");
+ ServerInstance->Logs->Log("BANCACHE", DEBUG, "Hit on " + ip + " is out of date, removing!");
RemoveHit(i->second);
return NULL; // out of date
}
RemoveHit(i->second);
return NULL; // out of date
}
if (i == this->BanHash->end())
{
// err..
if (i == this->BanHash->end())
{
// err..
- ServerInstance->Log(DEBUG, "BanCacheManager::RemoveHit(): I got asked to remove a hit that wasn't in the hash(?)");
+ ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCacheManager::RemoveHit(): I got asked to remove a hit that wasn't in the hash(?)");
BanCacheHash::iterator safei;
if (positive)
BanCacheHash::iterator safei;
if (positive)
- ServerInstance->Log(DEBUG, "BanCacheManager::RemoveEntries(): Removing positive hits for " + type);
+ ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCacheManager::RemoveEntries(): Removing positive hits for " + type);
- ServerInstance->Log(DEBUG, "BanCacheManager::RemoveEntries(): Removing negative hits for " + type);
+ ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCacheManager::RemoveEntries(): Removing negative hits for " + type);
for (BanCacheHash::iterator n = BanHash->begin(); n != BanHash->end(); )
{
for (BanCacheHash::iterator n = BanHash->begin(); n != BanHash->end(); )
{
if ((positive && !b->Reason.empty()) || b->Reason.empty())
{
/* we need to remove this one. */
if ((positive && !b->Reason.empty()) || b->Reason.empty())
{
/* we need to remove this one. */
- ServerInstance->Log(DEBUG, "BanCacheManager::RemoveEntries(): Removing a hit on " + b->IP);
+ ServerInstance->Logs->Log("BANCACHE", DEBUG, "BanCacheManager::RemoveEntries(): Removing a hit on " + b->IP);
delete b;
b = NULL;
BanHash->erase(n); // WORD TO THE WISE: don't use RemoveHit here, because we MUST remove the iterator in a safe way.
delete b;
b = NULL;
BanHash->erase(n); // WORD TO THE WISE: don't use RemoveHit here, because we MUST remove the iterator in a safe way.