2 * Remote client nick change notices.
14 static int _modinit(void);
15 static void h_gnc_nick_change(hook_data
*data
);
17 mapi_hfn_list_av1 gcn_hfnlist
[] = {
18 { "remote_nick_change", (hookfn
) h_gnc_nick_change
},
22 DECLARE_MODULE_AV2(globalnickchange
, _modinit
, NULL
, NULL
, NULL
, gcn_hfnlist
, NULL
, NULL
, NULL
);
27 /* show the fact that we are showing user information in /version */
28 opers_see_all_users
= 1;
34 h_gnc_nick_change(hook_data
*data
)
36 struct Client
*source_p
= data
->client
;
37 const char *oldnick
= data
->arg1
;
38 const char *newnick
= data
->arg2
;
40 sendto_realops_snomask_from(SNO_NCHANGE
, L_ALL
, source_p
->servptr
,
41 "Nick change: From %s to %s [%s@%s]",
42 oldnick
, newnick
, source_p
->username
, source_p
->host
);