2 * Remote oper up notices.
4 * $Id: sno_globaloper.c 639 2006-01-29 21:42:06Z jilles $
16 static void h_sgo_umode_changed(void *);
18 mapi_hfn_list_av1 sgo_hfnlist
[] = {
19 { "umode_changed", (hookfn
) h_sgo_umode_changed
},
23 DECLARE_MODULE_AV1(sno_globaloper
, NULL
, NULL
, NULL
, NULL
, sgo_hfnlist
, "$Revision: 639 $");
26 h_sgo_umode_changed(void *vdata
)
28 hook_data_umode_changed
*data
= (hook_data_umode_changed
*)vdata
;
29 struct Client
*source_p
= data
->client
;
31 if (MyConnect(source_p
) || !HasSentEob(source_p
->servptr
))
34 if (!(data
->oldumodes
& UMODE_OPER
) && IsOper(source_p
))
35 sendto_realops_snomask_from(SNO_GENERAL
, L_ALL
, source_p
->servptr
,
36 "%s (%s@%s) is now an operator",
37 source_p
->name
, source_p
->username
, source_p
->host
);