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,
#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 */
/* 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;
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();