Why did I make a nickalert script when xChat already has highlight messages?
Well because I tend to keep my computer running during the night, so I can read back when I was nickalerted.
Addtional information:
You have to change the $AlertsChan and $FileDir
And:
if(($text =~ /[nas]peter/i) || ($text =~ /peter/i)) {
replace [nas]peter or peter with the name(s) you want to get nickalerted on.