13 static void h_can_join(hook_data_channel
*);
15 mapi_hfn_list_av1 sslonly_hfnlist
[] = {
16 { "can_join", (hookfn
) h_can_join
},
20 static unsigned int mymode
;
25 mymode
= cflag_add('S', chm_simple
);
39 DECLARE_MODULE_AV1(chm_sslonly
, _modinit
, _moddeinit
, NULL
, NULL
, sslonly_hfnlist
, "$Revision$");
42 h_can_join(hook_data_channel
*data
)
44 struct Client
*source_p
= data
->client
;
45 struct Channel
*chptr
= data
->chptr
;
47 if((chptr
->mode
.mode
& mymode
) && !IsSSLClient(source_p
)) {
48 sendto_one_notice(source_p
, ":Only users using SSL could join this channel!");
49 data
->approved
= ERR_CUSTOM
;