2 * restrict unauthenticated users from doing anything as channel op
16 #include "privilege.h"
17 #include "s_newconf.h"
19 static const char restrict_desc
[] =
20 "Restrict unautenticated users from doing anything as channel ops";
22 static void hack_channel_access(void *data
);
24 mapi_hfn_list_av1 restrict_unauthenticated_hfnlist
[] = {
25 { "get_channel_access", (hookfn
) hack_channel_access
},
30 hack_channel_access(void *vdata
)
32 hook_data_channel_approval
*data
= (hook_data_channel_approval
*) vdata
;
34 if (!MyClient(data
->client
))
37 if (EmptyString(data
->client
->user
->suser
))
41 DECLARE_MODULE_AV2(restrict_unauthenticated
, NULL
, NULL
, NULL
, NULL
,
42 restrict_unauthenticated_hfnlist
, NULL
, NULL
, restrict_desc
);