]> jfr.im git - irc/quakenet/newserv.git/blobdiff - helpmod2/hlamer.h
Remove test #ifs around the GL commands.
[irc/quakenet/newserv.git] / helpmod2 / hlamer.h
index 1381d69490bb396e704431290cd0cd731114d3bc..948ba907cd9134102815322f8bb511084f9a7be0 100644 (file)
@@ -6,6 +6,10 @@
 
 #define HLC_DEFAULT_BANTIME (60 * 60 * 24)
 
+/* Forward declarations */
+struct hchannel_struct;
+struct huser_struct;
+
 typedef enum
 {
     HLC_CAPS,
@@ -15,6 +19,15 @@ typedef enum
     HLC_SPAM
 } hlc_violation;
 
+/* under construction */
+typedef enum
+{
+    HLC_X,
+    HLC_Y
+} hlc_component;
+
+#define HLC_COMPONENT_COUNT 0
+
 typedef struct hlamercontrol_profile_struct
 {
     sstring *name;
@@ -48,8 +61,11 @@ hlc_profile *hlc_del(hlc_profile *);
 void hlc_del_all(void);
 hlc_profile *hlc_get(const char *);
 
-/* checks a string for lameness, returns non-zero if lameness is present and user is kicked */
-/* the first parameter is hchannel* and second is huser*, but since hchannel.h includes hlamer.h, this is needed */
-int hlc_check(void *, void*, const char *);
+/* checks a string for lameness, returns non-zero if lameness is present and the user is kicked */
+int hlc_check(struct hchannel_struct*, struct huser_struct*, const char *);
+
+/* Returns the component name for the given component */
+const char *hlc_get_cname(hlc_component);
+const char *hlc_get_violation_name(hlc_violation);
 
 #endif