13 static void h_can_join(hook_data_channel
*);
15 mapi_hfn_list_av1 sslonly_hfnlist
[] = {
16 { "can_join", (hookfn
) h_can_join
},
23 chmode_table
['S'].mode_type
= find_cflag_slot();
24 chmode_table
['S'].set_func
= chm_simple
;
26 construct_noparam_modes();
35 chmode_table
['S'].mode_type
= 0;
37 construct_noparam_modes();
40 DECLARE_MODULE_AV1(chm_sslonly
, _modinit
, _moddeinit
, NULL
, NULL
, sslonly_hfnlist
, "$Revision$");
43 h_can_join(hook_data_channel
*data
)
45 struct Client
*source_p
= data
->client
;
46 struct Channel
*chptr
= data
->chptr
;
48 if((chptr
->mode
.mode
& chmode_flags
['S']) && !IsSSLClient(source_p
)) {
49 sendto_one_notice(source_p
, ":Only users using SSL could join this channel!");
50 data
->approved
= ERR_CUSTOM
;