Sorry for the delayed reply, didnt see your reply;

On *:Connect:{
set $+(%,tmp.signon.,$server) $ctime
}


There is also no such thing as $dur and /iecho wont work when not connected, so you cant use that, see this:

on 1:DISCONNECT:{
var %t = $server
echo -s disconnected from %t
echo -s signon time : $asctime($eval($+(%,tmp.signon.,%t),2),ddd mmm d HH:nn:ss yyyy)
echo -s signoff time : $asctime($ctime,ddd mmm d HH:nn:ss yyyy)
echo -s total ontime : $replace($duration($calc($ctime - $eval($+(%,tmp.signon.,%t),2))),wks,w,wk,w,days,d,day,d,hrs,h,hr,h,mins,m,min,m,secs,s,sec,s)
}


Eamonn.