extern int h_new_local_user;
extern int h_new_remote_user;
extern int h_introduce_client;
+extern int h_can_kick;
+extern int h_privmsg_channel;
+extern int h_privmsg_user;
+extern int h_conf_read_start;
+extern int h_conf_read_end;
void init_hook(void);
int register_hook(const char *name);
typedef struct
{
struct Client *client;
+ struct Channel *chptr;
+ struct membership *msptr;
+ struct Client *target;
+ int approved;
+ int dir;
+} hook_data_channel_approval;
+
+typedef struct
+{
+ struct Client *client;
+ struct Client *target;
int approved;
} hook_data_client_approval;
unsigned int oldsnomask;
} hook_data_umode_changed;
+enum message_type {
+ MESSAGE_TYPE_NOTICE,
+ MESSAGE_TYPE_PRIVMSG,
+ MESSAGE_TYPE_PART,
+ MESSAGE_TYPE_COUNT
+};
+
+typedef struct
+{
+ enum message_type msgtype;
+ struct Client *source_p;
+ struct Channel *chptr;
+ const char *text;
+ int approved;
+} hook_data_privmsg_channel;
+
+typedef struct
+{
+ enum message_type msgtype;
+ struct Client *source_p;
+ struct Client *target_p;
+ const char *text;
+ int approved;
+} hook_data_privmsg_user;
+
#endif