Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
DefConTimeout Class Reference
Inheritance diagram for DefConTimeout:
Inheritance graph
[legend]
Collaboration diagram for DefConTimeout:
Collaboration graph
[legend]

Public Member Functions

 DefConTimeout (Module *mod, int newlevel)
 
 ~DefConTimeout ()
 
void Tick (time_t) anope_override
 
- Public Member Functions inherited from Timer
 Timer (long time_from_now, time_t now=Anope::CurTime, bool repeating=false)
 
 Timer (Module *creator, long time_from_now, time_t now=Anope::CurTime, bool repeating=false)
 
virtual ~Timer ()
 
void SetTimer (time_t t)
 
time_t GetTimer () const
 
bool GetRepeat () const
 
void SetSecs (time_t t)
 
long GetSecs () const
 
time_t GetSetTime () const
 
ModuleGetOwner () const
 

Private Attributes

int level
 

Detailed Description

Definition at line 108 of file os_defcon.cpp.

Constructor & Destructor Documentation

DefConTimeout::DefConTimeout ( Module mod,
int  newlevel 
)
inline

Definition at line 113 of file os_defcon.cpp.

DefConTimeout::~DefConTimeout ( )
inline

Definition at line 118 of file os_defcon.cpp.

Member Function Documentation

void DefConTimeout::Tick ( time_t  ctime)
inlinevirtual

Called when the timer ticks This should be overridden with something useful

Implements Timer.

Definition at line 123 of file os_defcon.cpp.

References _, DefconConfig::defaultlevel, Anope::string::empty(), FOREACH_MOD, DefconConfig::globalondefcon, level, DefconConfig::message, DefconConfig::offmessage, Anope::printf(), runDefCon(), GlobalService::SendGlobal(), and Language::Translate().

Field Documentation

int DefConTimeout::level
private

Definition at line 110 of file os_defcon.cpp.

Referenced by Tick().


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