I'm try to turn this into a multiserver type thing, but don't know where to start
i have
Code:
 on 1:CONNECT:{ set %tmp.signon $ctime } 


and
Code:
on 1:DISCONNECT:{ { echo -s disconnected from $server | iecho -s signon time  :    $asctime(%tmp.signon,ddd mmm d HH:nn:ss yyyy) | iecho -s signoff time :    $asctime($ctime,ddd mmm d HH:nn:ss yyyy) | iecho -s total ontime :    $replace($dur($calc($ctime - %tmp.signon)),wks,w,wk,w,days,d,day,d,hrs,h,hr,h,mins,m,min,m,secs,s,sec,s) | unset %tmp* } | haltdef } 


it's supposed to look like

disconnected from irc.blah.com
signon time : Tue Jul 20 17:19:57 2004
signoff time : Tue Jul 20 17:19:58 2004
total ontime : 1s

but if i connect to other servers after and disconnect from another or, both or however many i'm on at the time, all the stats are wrong ie;

disconnected from irc.blah2.net
signon time :
signoff time : Tue Jul 20 17:19:42 2004
total ontime : 1802w 5d 16h 19m 42s

any help would be great.