2 * Disable LOCOPS (by disallowing any local user setting +l).
13 #include "s_newconf.h"
15 static void h_nl_umode_changed(hook_data_umode_changed
*);
17 mapi_hfn_list_av1 nl_hfnlist
[] = {
18 { "umode_changed", (hookfn
) h_nl_umode_changed
},
22 DECLARE_MODULE_AV1(no_locops
, NULL
, NULL
, NULL
, NULL
, nl_hfnlist
, "$Revision: 3219 $");
25 h_nl_umode_changed(hook_data_umode_changed
*hdata
)
27 struct Client
*source_p
= hdata
->client
;
29 if (MyClient(source_p
) && source_p
->umodes
& UMODE_LOCOPS
)
31 source_p
->umodes
&= ~UMODE_LOCOPS
;