2 * Override WHOIS logic to hide channel memberships that are not common.
13 #include "s_newconf.h"
15 static void h_huc_doing_whois_channel_visibility(hook_data_client
*);
17 mapi_hfn_list_av1 huc_hfnlist
[] = {
18 { "doing_whois_channel_visibility", (hookfn
) h_huc_doing_whois_channel_visibility
},
22 DECLARE_MODULE_AV1(hide_uncommon_channels
, NULL
, NULL
, NULL
, NULL
, huc_hfnlist
, "");
25 h_huc_doing_whois_channel_visibility(hook_data_client
*hdata
)
27 hdata
->approved
= ((PubChannel(hdata
->chptr
) && !IsInvisible(hdata
->target
)) || IsMember((hdata
->client
), (hdata
->chptr
)));