Try something like:

on *:ctcpreply:*: {
/echo -a $form.ctcp_rep($nick, $1, $duration($calc($ctime - $2)))
halt
}