InspIRCd  4.0
Public Member Functions | Public Attributes | List of all members
BanCacheHit Class Reference

#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

Detailed Description

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.

Member Data Documentation

◆ Expiry

time_t BanCacheHit::Expiry

Time that the ban expires at

◆ Reason

std::string BanCacheHit::Reason

Reason, shown as quit message

◆ Type

std::string BanCacheHit::Type

Type of cached ban

The documentation for this class was generated from the following files: