2 * Remote client nick change notices.
14 static const char sno_desc
[] =
15 "Adds server notices for remote nick changes";
17 static int _modinit(void);
18 static void h_gnc_nick_change(hook_data
*data
);
20 mapi_hfn_list_av1 gcn_hfnlist
[] = {
21 { "remote_nick_change", (hookfn
) h_gnc_nick_change
},
25 DECLARE_MODULE_AV2(globalnickchange
, _modinit
, NULL
, NULL
, NULL
, gcn_hfnlist
, NULL
, NULL
, sno_desc
);
30 /* show the fact that we are showing user information in /version */
31 opers_see_all_users
= true;
37 h_gnc_nick_change(hook_data
*data
)
39 struct Client
*source_p
= data
->client
;
40 const char *oldnick
= data
->arg1
;
41 const char *newnick
= data
->arg2
;
43 sendto_realops_snomask_from(SNO_NCHANGE
, L_ALL
, source_p
->servptr
,
44 "Nick change: From %s to %s [%s@%s]",
45 oldnick
, newnick
, source_p
->username
, source_p
->host
);