2 * Deny user to remove +i flag except they are irc operators
4 * Based off no_oper_invis.c by jilles
6 * Note that +i must be included in default_umodes
16 #include "s_newconf.h"
18 static void h_noi_umode_changed(hook_data_umode_changed
*);
20 mapi_hfn_list_av1 noi_hfnlist
[] = {
21 { "umode_changed", (hookfn
) h_noi_umode_changed
},
25 DECLARE_MODULE_AV1(force_user_invis
, NULL
, NULL
, NULL
, NULL
, noi_hfnlist
, "1.0.0");
28 h_noi_umode_changed(hook_data_umode_changed
*hdata
)
30 struct Client
*source_p
= hdata
->client
;
32 if (MyClient(source_p
) && !IsOper(source_p
) && !IsInvisible(source_p
)) {
33 SetInvisible(source_p
);