on *:JOIN:*:{
if (!$readini(peak.ini,$network,$chan)) { writeini peak.ini $network $chan $nick($chan,0) $ctime }
elseif ($gettok($readini(peak.ini,$network,$chan),1,32) < $nick($chan,0)) {
writeini peak.ini $network $chan $v2 $ctime
;rest of your code to respond to a new peak goes here
}
}
on *:TEXT:!peak:*:{
if ($readini(peak.ini,$network,$chan)) { msg $chan Channel peak for $chan is $gettok($v1,1,32) $+ , set on $asctime($gettok($v1,2,32)) }
}