Once you disconnect it should tell your time online
-NOTE-
Was not made by me
http://members.xoom.com/Polaris_IRC/
Example :
11(Fri/12:56:07 PM) Polaris has joined #darkside@en
11(Fri/12:56:09 PM) Polaris Quit (Quit: (I was using ) Wasted:(2 Seconds Online))
on *:disconnect:{
if ($window(@Ports) != $null) { window -c @Ports }
.timer 1 0 tbar
set %Timer.Total.Day $calc($online + %Timer.Total.Day)
set %Timer.Total.Month $calc($online + %Timer.Total.Month)
set %Timer.Total.Year $calc($online + %Timer.Total.Year)
set %Timer.Total $calc($online + %Timer.Total)
secho > $+ $str(-,48) $+ <
secho $c(1) Time Online - Stats at $atime
secho $c(1) Session: $lduration($online)
secho $c(1) Today: $lduration(%Timer.Total.Day)
secho $c(1) Month: $lduration(%Timer.Total.Month)
secho $c(1) Year: $lduration(%Timer.Total.Year)
secho $c(1) Total: $lduration(%Timer.Total)
secho > $+ $str(-,48) $+ <
}
This is somewhat pointless, and you could even make it simpler by using $uptime(mIRC,1) for your mIRC's uptime, and $uptime(server,1) your server's connected time instead of adding it all together at the end.
Also where are you getting these vars from?
%Timer.Total.Day %Timer.Total.Month %Timer.Total.Year %Timer.Total ?
set %Timer.Total.Day $calc($online + %Timer.Total.Day)
I see that your setting them but how can you set something when your using it in the setting input?