alias nickchange {
inc %z
tokenize 58 $read(nick.txt,n,%z)
echo -a > $1-
if ($0) { nick $1 | ns identify $2 }
else { %z = 0 | .timer -h 1 0 nickchange }
}
Try with this, when the alias is called, check if the /echo echoed something, if not, it mean that the $read is $null.