2 * Remote oper up notices.
15 static void h_sgo_umode_changed(void *);
17 mapi_hfn_list_av1 sgo_hfnlist
[] = {
18 { "umode_changed", (hookfn
) h_sgo_umode_changed
},
22 DECLARE_MODULE_AV1(sno_globaloper
, NULL
, NULL
, NULL
, NULL
, sgo_hfnlist
, "$Revision: 639 $");
25 h_sgo_umode_changed(void *vdata
)
27 hook_data_umode_changed
*data
= (hook_data_umode_changed
*)vdata
;
28 struct Client
*source_p
= data
->client
;
30 if (MyConnect(source_p
) || !HasSentEob(source_p
->servptr
))
33 if (!(data
->oldumodes
& UMODE_OPER
) && IsOper(source_p
))
34 sendto_realops_snomask_from(SNO_GENERAL
, L_ALL
, source_p
->servptr
,
35 "%s (%s@%s) is now an operator",
36 source_p
->name
, source_p
->username
, source_p
->host
);