InspIRCd
3.0
|
#include <bancache.h>
Public Member Functions | |
BanCacheHit (const std::string &type, const std::string &reason, time_t seconds) | |
bool | IsPositive () const |
Public Attributes | |
std::string | Type |
std::string | Reason |
time_t | Expiry |
Stores a cached ban entry. Each ban has one of these hashed in a hash_map to make for faster removal of already-banned users in the case that they try to reconnect. As no wildcard matching is done on these IPs, the speed of the system is improved. These cache entries expire every few hours, which is a reasonable expiry for any reasonable sized network.
time_t BanCacheHit::Expiry |
Time that the ban expires at
std::string BanCacheHit::Reason |
Reason, shown as quit message
std::string BanCacheHit::Type |
Type of cached ban