]> jfr.im git - solanum.git/blobdiff - include/hook.h
Use linear channel list comparisons
[solanum.git] / include / hook.h
index ddcf6b6cb5a4c08ccfa3f52d0daac5d5cefd5394..f3a2b88f7e1eafab7a03e326098c978f86444088 100644 (file)
@@ -79,8 +79,6 @@ typedef struct
 {
        struct Client *client;
        struct Client *target;
-       struct Channel *chptr;
-       int approved;
 } hook_data_client;
 
 typedef struct
@@ -109,6 +107,15 @@ typedef struct
        const char *error;
 } hook_data_channel_approval;
 
+typedef struct
+{
+       struct Client *client;
+       struct Channel *chptr;
+       struct membership *clientms;
+       struct membership *targms;
+       int approved;
+} hook_data_channel_visibility;
+
 typedef struct
 {
        struct Client *client;