+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;
+
+typedef struct
+{
+ bool signal;
+} hook_data_rehash;
+