2 * Override WHOIS logic to hide channel memberships that are not common.
13 #include "s_newconf.h"
15 static const char hide_desc
[] = "Hides channel memberships not shared";
17 static void h_huc_doing_whois_channel_visibility(void *);
19 mapi_hfn_list_av1 huc_hfnlist
[] = {
20 { "doing_whois_channel_visibility", h_huc_doing_whois_channel_visibility
},
24 DECLARE_MODULE_AV2(hide_uncommon_channels
, NULL
, NULL
, NULL
, NULL
, huc_hfnlist
, NULL
, NULL
, hide_desc
);
27 h_huc_doing_whois_channel_visibility(void *data_
)
29 hook_data_channel_visibility
*data
= data_
;
30 data
->approved
= data
->approved
&& (!IsInvisible(data
->target
) || data
->clientms
!= NULL
);