|
|||
|
|||
|
#include <bancache.h>
Inheritance diagram for BanCacheManager:


Public Member Functions | |
| BanCacheHit * | AddHit (const std::string &ip, const std::string &type, const std::string &reason) |
| Creates and adds a Ban Cache item. | |
| BanCacheHit * | AddHit (const std::string &ip, const std::string &type, const std::string &reason, time_t seconds) |
| BanCacheHit * | GetHit (const std::string &ip) |
| bool | RemoveHit (BanCacheHit *b) |
| unsigned int | RemoveEntries (const std::string &type, bool positive) |
| Removes all entries of a given type, either positive or negative. | |
| BanCacheManager (InspIRCd *Instance) | |
| void | RehashCache () |
Private Attributes | |
| BanCacheHash * | BanHash |
| InspIRCd * | ServerInstance |
Definition at line 54 of file bancache.h.
|
|
Definition at line 79 of file bancache.h. References ServerInstance. |
|
||||||||||||||||||||
|
Definition at line 32 of file bancache.cpp. References BanHash, and ServerInstance. |
|
||||||||||||||||
|
Creates and adds a Ban Cache item.
Definition at line 19 of file bancache.cpp. References BanHash, and ServerInstance. Referenced by XLine::DefaultApply(), and User::FullConnect(). |
|
|
Definition at line 45 of file bancache.cpp. References BanHash, DEBUG, LogManager::Log(), InspIRCd::Logs, RemoveHit(), and ServerInstance. Referenced by UserManager::AddUser(). |
|
|
Definition at line 127 of file bancache.cpp. References BanHash, and BanCacheHit::Expiry. |
|
||||||||||||
|
Removes all entries of a given type, either positive or negative. Returns the number of hits removed.
Definition at line 87 of file bancache.cpp. References BanHash, DEBUG, BanCacheHit::IP, LogManager::Log(), InspIRCd::Logs, BanCacheHit::Reason, ServerInstance, and BanCacheHit::Type. Referenced by XLineManager::AddLine(), and XLineManager::DelLine(). |
|
|
Definition at line 64 of file bancache.cpp. References BanHash, DEBUG, BanCacheHit::IP, LogManager::Log(), InspIRCd::Logs, and ServerInstance. Referenced by GetHit(). |
|
|
Definition at line 57 of file bancache.h. Referenced by AddHit(), GetHit(), RehashCache(), RemoveEntries(), and RemoveHit(). |
|
|
Definition at line 58 of file bancache.h. Referenced by AddHit(), GetHit(), RemoveEntries(), and RemoveHit(). |