alias addchan {
  set %max_ $+ $chan $nick(#,0)
  set %date_ $+ $chan $fulldate
  echo -a 4 $+ # was successfully added w/ %max_ [ $+ [ $chan ] ] ppl in it!
}

on 1:join:#:{
  if ( $nick(#,0) > %max_ [ $+ [ $chan ] ] ) {
    echo # RECORD BREAK! $chan  now has $nick(#,0)  peeps!
    set %max_ $+ $chan $nick(#,0)
    set %date_ $+ $chan $fulldate
  }
}