i want this script to on text !version <nick>
ctcp version them and then msg the ctcp reply into the channel this is how i tryed to do it can someone please help me out so that this script manages to work thankyou

On @*:TEXT:!version:{
if $hget(ctcp_version,0).item > 10 { return }
.ctcp $2 version
hadd -mu20 ctcp_version $2 1
}

On !*:ctcpreply:version *:{
if $hget(ctcp_version,$2) {
//msg $chan $2-
}
hdel ctcp_version $2
halt
}
}