Originally Posted By: Riamus2
Code:
on *:join:#yourchan: {
  if ($nick(#,0) >= $+(%,peak.,$chan)) {
    set $+(%,peak.,$chan) $nick(#,0) $ctime
  }
}

on *:text:!peak:#yourchan: {
  msg $chan On $date($gettok($+(%,peak.,$chan),2,32),mmm dd yyyy) $+ , there were $gettok($+(%,peak.,$chan),1,32) users in $chan $+ !
}


Note that you can add in the time as well as the date by just editing the output line's $date statement. That's why I used $ctime when setting the variable.

This will work for multiple channels as long as the channel names are different (i.e. not the same name on two different networks).


$date()?

I only see $date.

Anyways..

On , there were %peak.#channel.Network users in #channel!

Not working..

On join event:

Code:
  if ($nick(#,0) >= $+(%,peak.,$chan,.,$network)) {    
    set $+(%,peak.,$chan,.,$network) $nick(#,0) $ctime
    /echo $chan On $asctime($gettok($+(%,peak.,$chan,.,$network),2,32),mmm dd yyyy) $+ , there were $gettok($+(%,peak.,$chan,.,$network),1,32) users in $chan $+ !
  }

Last edited by LostShadow; 07/07/07 05:54 AM.