5 #include "../lib/sstring.h"
7 #define HLC_DEFAULT_BANTIME (60 * 60 * 24)
18 typedef struct hlamercontrol_profile_struct
22 int caps_max_percentage
;
25 int repeats_max_count
;
26 int repeats_min_length
;
28 int symbol_repeat_max_count
;
29 int character_repeat_max_count
;
41 struct hlamercontrol_profile_struct
*next
;
44 extern hlc_profile
*hlc_profiles
;
45 /* just adds a profile, does NOT set any values */
46 hlc_profile
* hlc_add(const char *);
47 hlc_profile
*hlc_del(hlc_profile
*);
48 void hlc_del_all(void);
49 hlc_profile
*hlc_get(const char *);
51 /* checks a string for lameness, returns non-zero if lameness is present and user is kicked */
52 /* the first parameter is hchannel* and second is huser*, but since hchannel.h includes hlamer.h, this is needed */
53 int hlc_check(void *, void*, const char *);