Planeshift
Public Member Functions | Protected Attributes

BanManager Class Reference

Holds list of banned accounts and IP ranges. More...

#include <authentserver.h>

List of all members.

Public Member Functions

bool AddBan (AccountID account, csString ipRange, time_t duration, csString reason, bool banIP)
 BanManager ()
BanEntryGetBanByAccount (AccountID account)
BanEntryGetBanByIPRange (csString IPRange)
bool RemoveBan (AccountID account)
 ~BanManager ()

Protected Attributes

csHash< BanEntry *, AccountID > banList_IDHash
csArray< BanEntry * > banList_IPRList
 Full list of all active bans.

Detailed Description

Holds list of banned accounts and IP ranges.

Definition at line 50 of file authentserver.h.


Constructor & Destructor Documentation

BanManager::BanManager ( )
BanManager::~BanManager ( )

Member Function Documentation

bool BanManager::AddBan ( AccountID  account,
csString  ipRange,
time_t  duration,
csString  reason,
bool  banIP 
)
BanEntry* BanManager::GetBanByAccount ( AccountID  account)
BanEntry* BanManager::GetBanByIPRange ( csString  IPRange)
bool BanManager::RemoveBan ( AccountID  account)

Member Data Documentation

csHash<BanEntry*, AccountID> BanManager::banList_IDHash [protected]

Definition at line 62 of file authentserver.h.

Full list of all active bans.

Definition at line 63 of file authentserver.h.


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