Anope IRC Services  Version 2.0
Public Member Functions | Data Fields
DefconConfig Struct Reference
Collaboration diagram for DefconConfig:
Collaboration graph
[legend]

Public Member Functions

 DefconConfig ()
 
bool Check (DefconLevel level)
 
bool Check (int dlevel, DefconLevel level)
 
void Add (int dlevel, DefconLevel level)
 
void Del (int dlevel, DefconLevel level)
 
bool SetDefConParam (const Anope::string &name, const Anope::string &buf)
 
void UnsetDefConParam (const Anope::string &name)
 
bool GetDefConParam (const Anope::string &name, Anope::string &buf)
 

Data Fields

std::vector< std::bitset< 32 > > DefCon
 
std::set< Anope::stringDefConModesOn
 
std::set< Anope::stringDefConModesOff
 
std::map< Anope::string,
Anope::string
DefConModesOnParams
 
int defaultlevel
 
int sessionlimit
 
Anope::string chanmodes
 
Anope::string message
 
Anope::string offmessage
 
Anope::string akillreason
 
std::vector< Anope::stringdefcons
 
time_t akillexpire
 
time_t timeout
 
bool globalondefcon
 
unsigned max_session_kill
 
time_t session_autokill_expiry
 
Anope::string sle_reason
 
Anope::string sle_detailsloc
 

Detailed Description

Definition at line 31 of file os_defcon.cpp.

Constructor & Destructor Documentation

DefconConfig::DefconConfig ( )
inline

Definition at line 47 of file os_defcon.cpp.

Member Function Documentation

void DefconConfig::Add ( int  dlevel,
DefconLevel  level 
)
inline

Definition at line 63 of file os_defcon.cpp.

Referenced by OSDefcon::OnReload().

bool DefconConfig::Check ( DefconLevel  level)
inline
bool DefconConfig::Check ( int  dlevel,
DefconLevel  level 
)
inline

Definition at line 58 of file os_defcon.cpp.

void DefconConfig::Del ( int  dlevel,
DefconLevel  level 
)
inline

Definition at line 68 of file os_defcon.cpp.

bool DefconConfig::GetDefConParam ( const Anope::string name,
Anope::string buf 
)
inline

Definition at line 83 of file os_defcon.cpp.

References Anope::string::clear().

Referenced by OSDefcon::OnChannelModeUnset().

bool DefconConfig::SetDefConParam ( const Anope::string name,
const Anope::string buf 
)
inline

Definition at line 73 of file os_defcon.cpp.

Referenced by OSDefcon::ParseModeString().

void DefconConfig::UnsetDefConParam ( const Anope::string name)
inline

Definition at line 78 of file os_defcon.cpp.

Referenced by OSDefcon::ParseModeString().

Field Documentation

time_t DefconConfig::akillexpire

Definition at line 40 of file os_defcon.cpp.

Referenced by OSDefcon::OnReload(), and OSDefcon::OnUserConnect().

Anope::string DefconConfig::akillreason

Definition at line 38 of file os_defcon.cpp.

Referenced by OSDefcon::OnReload(), and OSDefcon::OnUserConnect().

Anope::string DefconConfig::chanmodes
int DefconConfig::defaultlevel

Definition at line 37 of file os_defcon.cpp.

Referenced by CommandOSDefcon::Execute(), OSDefcon::OnReload(), and DefConTimeout::Tick().

std::vector<std::bitset<32> > DefconConfig::DefCon

Definition at line 33 of file os_defcon.cpp.

std::set<Anope::string> DefconConfig::DefConModesOff

Definition at line 34 of file os_defcon.cpp.

Referenced by OSDefcon::OnChannelModeSet(), and OSDefcon::ParseModeString().

std::set<Anope::string> DefconConfig::DefConModesOn

Definition at line 34 of file os_defcon.cpp.

Referenced by OSDefcon::OnChannelModeUnset(), and OSDefcon::ParseModeString().

std::map<Anope::string, Anope::string> DefconConfig::DefConModesOnParams

Definition at line 35 of file os_defcon.cpp.

std::vector<Anope::string> DefconConfig::defcons

Definition at line 39 of file os_defcon.cpp.

Referenced by OSDefcon::OnReload().

bool DefconConfig::globalondefcon

Definition at line 41 of file os_defcon.cpp.

Referenced by CommandOSDefcon::Execute(), OSDefcon::OnReload(), and DefConTimeout::Tick().

unsigned DefconConfig::max_session_kill

Definition at line 43 of file os_defcon.cpp.

Referenced by OSDefcon::OnReload(), and OSDefcon::OnUserConnect().

Anope::string DefconConfig::message

Definition at line 38 of file os_defcon.cpp.

Referenced by CommandOSDefcon::Execute(), OSDefcon::OnReload(), and DefConTimeout::Tick().

Anope::string DefconConfig::offmessage

Definition at line 38 of file os_defcon.cpp.

Referenced by CommandOSDefcon::Execute(), OSDefcon::OnReload(), and DefConTimeout::Tick().

time_t DefconConfig::session_autokill_expiry

Definition at line 44 of file os_defcon.cpp.

Referenced by OSDefcon::OnReload(), and OSDefcon::OnUserConnect().

int DefconConfig::sessionlimit
Anope::string DefconConfig::sle_detailsloc

Definition at line 45 of file os_defcon.cpp.

Referenced by OSDefcon::OnReload(), and OSDefcon::OnUserConnect().

Anope::string DefconConfig::sle_reason

Definition at line 45 of file os_defcon.cpp.

Referenced by OSDefcon::OnReload(), and OSDefcon::OnUserConnect().

time_t DefconConfig::timeout

Definition at line 40 of file os_defcon.cpp.

Referenced by CommandOSDefcon::Execute(), and OSDefcon::OnReload().


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