PING reply to ms - 04/11/05 02:41 AM
How can I convert my ctcp PING reply to others from seconds to milliseconds?
alias ping set -u100 %ping $+ $$1 $ticks | ctcp $1 ping [color:red] [/color] on *:ctcpreply:ping *:{ if ($($+(%,ping,$nick),2)) { haltdef echo -atc ctcp [ $+ $nick PING reply]: $calc(($ticks - $v1)/1000) $+ secs unset %ping [ $+ [ $nick ] ] } }
alias ping .raw PRIVMSG $$1 : $+ $chr(1) $+ PING $ticks $+ $chr(1) on *:CTCPREPLY:PING*: { var %ping = $calc(($ticks - $2) / 1000) Seconds echo -a $+($nick,'s) $1 is %ping .notice $nick Your $1 is %ping haltdef }