Anope IRC Services  Version 2.0
bs_kick.h
Go to the documentation of this file.
1 /* BotServ core functions
2  *
3  * (C) 2003-2014 Anope Team
4  * Contact us at team@anope.org
5  *
6  * Please read COPYING and README for further details.
7  *
8  * Based on the original code of Epona by Lara.
9  * Based on the original code of Services by Andy Church.
10  *
11  *
12  */
13 
14 /* Indices for TTB (Times To Ban) */
15 enum
16 {
28 };
29 
30 struct KickerData
31 {
33  int16_t ttb[TTB_SIZE]; /* Times to ban for each kicker */
34  int16_t capsmin, capspercent; /* For CAPS kicker */
35  int16_t floodlines, floodsecs; /* For FLOOD kicker */
36  int16_t repeattimes; /* For REPEAT kicker */
37 
39 
40  protected:
41  KickerData() { }
42 
43  public:
44  virtual ~KickerData() { }
45  virtual void Check(ChannelInfo *ci) = 0;
46 };
virtual void Check(ChannelInfo *ci)=0
Definition: hashcomp.h:84
bool flood
Definition: bs_kick.h:32
virtual ~KickerData()
Definition: bs_kick.h:44
bool repeat
Definition: bs_kick.h:32
bool caps
Definition: bs_kick.h:32
int16_t floodlines
Definition: bs_kick.h:35
bool colors
Definition: bs_kick.h:32
bool reverses
Definition: bs_kick.h:32
int16_t repeattimes
Definition: bs_kick.h:36
int16_t capsmin
Definition: bs_kick.h:34
bool amsgs
Definition: bs_kick.h:32
bool dontkickops
Definition: bs_kick.h:38
bool bolds
Definition: bs_kick.h:32
int16_t ttb[TTB_SIZE]
Definition: bs_kick.h:33
bool italics
Definition: bs_kick.h:32
int16_t capspercent
Definition: bs_kick.h:34
KickerData()
Definition: bs_kick.h:41
bool badwords
Definition: bs_kick.h:32
bool dontkickvoices
Definition: bs_kick.h:38
bool underlines
Definition: bs_kick.h:32
int16_t floodsecs
Definition: bs_kick.h:35