anope- supernets anope source code & configuration |
git clone git://git.acid.vegas/anope.git |
Log | Files | Refs | Archive | README |
bs_kick.h (986B)
1 /* BotServ core functions 2 * 3 * (C) 2003-2022 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 /* Indices for TTB (Times To Ban) */ 13 enum 14 { 15 TTB_BOLDS, 16 TTB_COLORS, 17 TTB_REVERSES, 18 TTB_UNDERLINES, 19 TTB_BADWORDS, 20 TTB_CAPS, 21 TTB_FLOOD, 22 TTB_REPEAT, 23 TTB_ITALICS, 24 TTB_AMSGS, 25 TTB_SIZE 26 }; 27 28 struct KickerData 29 { 30 bool amsgs, badwords, bolds, caps, colors, flood, italics, repeat, reverses, underlines; 31 int16_t ttb[TTB_SIZE]; /* Times to ban for each kicker */ 32 int16_t capsmin, capspercent; /* For CAPS kicker */ 33 int16_t floodlines, floodsecs; /* For FLOOD kicker */ 34 int16_t repeattimes; /* For REPEAT kicker */ 35 36 bool dontkickops, dontkickvoices; 37 38 protected: 39 KickerData() { } 40 41 public: 42 virtual ~KickerData() { } 43 virtual void Check(ChannelInfo *ci) = 0; 44 };