]> jfr.im git - irc/quakenet/newserv.git/blobdiff - helpmod2/hchannel.h
Rename trusts_cidr2str to CIDRtostr() and move it to lib/irc_ipv6.c.
[irc/quakenet/newserv.git] / helpmod2 / hchannel.h
index c4c32e6337495ab5a856513cb370c4793789a679..b760e69e8d60d6fefb0b5b05bcf765ee414644d1 100644 (file)
@@ -41,6 +41,9 @@ enum
     H_QUEUE_TIMEOUT        = 1 << 18,
     H_REQUIRE_TICKET       = 1 << 19,
 
+    H_TICKET_MESSAGE       = 1 << 20,
+    H_HIGHLIGHT_PREVENTION = 1 << 21,
+
     /* the following are not real channel flags, they're used only internally */
     H_UNUSED_1             = 1 << 28,
     H_UNUSED_2             = 1 << 29,
@@ -50,12 +53,14 @@ enum
 
 #define H_CHANFLAGS_DEFAULT (H_CHANNEL_COMMANDS)
 
-#define HCHANNEL_CONF_COUNT 19
+#define HCHANNEL_CONF_COUNT 21
+
+#define HCHANNEL_WELCOME_LEN 400
 
 typedef struct hchannel_struct
 {
     channel *real_channel;
-    char welcome[400];
+    char welcome[HCHANNEL_WELCOME_LEN];
     int flags;
 
     int jf_control; /* join flood control */
@@ -69,11 +74,14 @@ typedef struct hchannel_struct
     /* this is also the queue, so it's "sorted" */
     struct hchannel_user_struct *channel_users;
 
+    time_t last_activity;
+    time_t last_staff_activity;
     hstat_channel *stats;
 
     hlc_profile *lc_profile;
 
     struct hticket_struct *htickets;
+    sstring *ticket_message;
 
     struct hchannel_struct *next;
 } hchannel;
@@ -128,6 +136,8 @@ void hchannels_match_accounts(void);
 
 int hchannel_count(void);
 
+int hchannel_highlight_detection(hchannel *, const char *);
+
 void hchannel_activate_join_flood(hchannel*);
 /* goes to schedule */
 void hchannel_deactivate_join_flood();