In the raw 317, the number stored in $4 is the $ctime value of when you signed on, which you can get with $asctime($4).
If you want to know how long you've been online, then it's a simple calculalation like:

$duration($calc($ctime - $4))

Btw, you are in fact doing a whois with the nickname paramter twice are you? Because if you do:

/whois <nickname> then it will not send you the raw 317. You specifically need to do:

/whois <nickname> <nickname>

I don't really get why you are using this variable approach, just put all the code in the raw events instead.


Gone.