2 * Disable LOCOPS (by disallowing any local user setting +l).
13 #include "s_newconf.h"
15 static const char no_locops_desc
[] = "Disables local operators";
17 static void h_nl_umode_changed(hook_data_umode_changed
*);
19 mapi_hfn_list_av1 nl_hfnlist
[] = {
20 { "umode_changed", (hookfn
) h_nl_umode_changed
},
24 DECLARE_MODULE_AV2(no_locops
, NULL
, NULL
, NULL
, NULL
, nl_hfnlist
, NULL
, NULL
, no_locops_desc
);
27 h_nl_umode_changed(hook_data_umode_changed
*hdata
)
29 struct Client
*source_p
= hdata
->client
;
31 if (MyClient(source_p
) && source_p
->umodes
& UMODE_LOCOPS
)
33 source_p
->umodes
&= ~UMODE_LOCOPS
;