ctcp ping reply calculation - 18/02/06 02:36 PM
Code:
on *:CTCPREPLY:*:{ if ($1 == ping) { goto ping } :ping %ping = $calc($ticks - $2) echo -a ctcp 1,1 $str($chr(160),10) 09 ctcp ping reply from $nick %ping sec(s) }
Nevermind, but i'm going to post my fix incase anyone ever had the same problem this post could be refered to
Code:
ctcp { if ($2 == ping) { set %ping $ticks echo -ai18 $theme(ctcp) 1,1 $str($chr(160),10) 9 $theme(ctcp $2 to $1) .ctcp $1 $2 .halt } } on *:CTCPREPLY:*:{ if ($1 == ping) { goto ping } :ping %pingz = $round($calc($calc($ticks - %ping) / 1000),4) echo -a $theme(ctcp) 1,1 $str($chr(160),10) 09 $theme(ctcp ping reply from $nick %pingz sec(s)) halt }
Also nevermind the $theme()