on *:join:#chan,#otherchan,...: {
if ($nick(#,0) > $($+(%,peak.,$chan,.,$network),2)) {
set $+(%,peak.,$chan,.,$network) $nick(#,0) $ctime
}
}
on *:text:!peak:#chan,#otherchan,...: {
var %val = $($+(%,peak.,$chan,.,$network),2)
if (%val) {
msg $chan On $+( $date($gettok(%val,2,32),mmm dd yyyy) $&
$chr(40), $duration($calc($ctime - $gettok(%val,2,32)),2) ago, $chr(41)) $&
there were $gettok(%val,1,32) users $&
(thats $round($calc(100 - $nick($chan,0) / $gettok(%val,1,32) * 100),0) $+ % more than now) $&
in $chan $+ !
}
}