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

Public Member Functions

 TempBan (time_t seconds, Channel *c, const Anope::string &banmask, const Anope::string &mod)
void Tick (time_t ctime) 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

Anope::string channel
Anope::string mask
Anope::string mode

Detailed Description

Definition at line 17 of file cs_ban.cpp.

Constructor & Destructor Documentation

TempBan::TempBan ( time_t  seconds,
Channel c,
const Anope::string banmask,
const Anope::string mod 

Definition at line 25 of file cs_ban.cpp.

Member Function Documentation

void TempBan::Tick ( time_t  ctime)

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

Implements Timer.

Definition at line 27 of file cs_ban.cpp.

References Channel::Find(), and Channel::RemoveMode().

Field Documentation

Anope::string TempBan::channel

Definition at line 20 of file cs_ban.cpp.

Anope::string TempBan::mask

Definition at line 21 of file cs_ban.cpp.

Anope::string TempBan::mode

Definition at line 22 of file cs_ban.cpp.

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