A little bit shorter.
on *:QUIT: {
var %.query.num 1
while ($query(%.query.num)) {
if ($nick == $v1) { echo -m $nick $timestamp 4* $nick has quit network stating ( $+ $1- $+ ) }
inc %.query.num
}
}
on *:NICK: {
var %.query.num 1
while ($query(%.query.num)) {
if ($newnick == $v1) { echo -m $newnick $timestamp 6* $nick changed their nick to $newnick }
inc %.query.num
}
}