5 #include "../lib/sstring.h"
7 #define HLC_DEFAULT_BANTIME (60 * 60 * 24)
9 /* Forward declarations */
10 struct hchannel_struct
;
22 /* under construction */
29 #define HLC_COMPONENT_COUNT 0
31 typedef struct hlamercontrol_profile_struct
35 int caps_max_percentage
;
38 int repeats_max_count
;
39 int repeats_min_length
;
41 int symbol_repeat_max_count
;
42 int character_repeat_max_count
;
54 struct hlamercontrol_profile_struct
*next
;
57 extern hlc_profile
*hlc_profiles
;
58 /* just adds a profile, does NOT set any values */
59 hlc_profile
* hlc_add(const char *);
60 hlc_profile
*hlc_del(hlc_profile
*);
61 void hlc_del_all(void);
62 hlc_profile
*hlc_get(const char *);
64 /* checks a string for lameness, returns non-zero if lameness is present and the user is kicked */
65 int hlc_check(struct hchannel_struct
*, struct huser_struct
*, const char *);
67 /* Returns the component name for the given component */
68 const char *hlc_get_cname(hlc_component
);
69 const char *hlc_get_violation_name(hlc_violation
);