2 * Remote oper up notices.
14 static void h_sgo_umode_changed(void *);
16 mapi_hfn_list_av1 sgo_hfnlist
[] = {
17 { "umode_changed", (hookfn
) h_sgo_umode_changed
},
21 DECLARE_MODULE_AV2(sno_globaloper
, NULL
, NULL
, NULL
, NULL
, sgo_hfnlist
, NULL
, NULL
, NULL
);
24 h_sgo_umode_changed(void *vdata
)
26 hook_data_umode_changed
*data
= (hook_data_umode_changed
*)vdata
;
27 struct Client
*source_p
= data
->client
;
29 if (MyConnect(source_p
) || !HasSentEob(source_p
->servptr
))
32 if (!(data
->oldumodes
& UMODE_OPER
) && IsOper(source_p
))
33 sendto_realops_snomask_from(SNO_GENERAL
, L_ALL
, source_p
->servptr
,
34 "%s (%s@%s) is now an operator",
35 source_p
->name
, source_p
->username
, source_p
->host
);