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

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::DefConTimeout ( Module mod,
int  newlevel 

Definition at line 113 of file os_defcon.cpp.

◆ ~DefConTimeout()

DefConTimeout::~DefConTimeout ( )

Definition at line 118 of file os_defcon.cpp.

Member Function Documentation

◆ Tick()

void DefConTimeout::Tick ( time_t  ctime)

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, DefconConfig::message, DefconConfig::offmessage, Anope::printf(), runDefCon(), GlobalService::SendGlobal(), and Language::Translate().

Field Documentation

◆ level

int DefConTimeout::level

Definition at line 110 of file os_defcon.cpp.

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