]> jfr.im git - solanum.git/blobdiff - include/hook.h
Add a cap_change hook
[solanum.git] / include / hook.h
index 8bf8d9fcd84638da94e863522e6fc92d8c8d7f24..c9dcf93e207eb2eb9c16a74f439462cf786089e1 100644 (file)
@@ -45,6 +45,7 @@ extern int h_conf_read_start;
 extern int h_conf_read_end;
 extern int h_outbound_msgbuf;
 extern int h_rehash;
+extern int h_cap_change;
 
 void init_hook(void);
 int register_hook(const char *name);
@@ -146,6 +147,14 @@ typedef struct
        unsigned int oldsnomask;
 } hook_data_umode_changed;
 
+typedef struct
+{
+       struct Client *client;
+       int oldcaps;
+       int add;
+       int del;
+} hook_data_cap_change;
+
 enum message_type {
        MESSAGE_TYPE_NOTICE,
        MESSAGE_TYPE_PRIVMSG,