I have a script that ctcp versions a user on join a channel.
It adds the user's hostmask, and then sets a 60 sec timer to check if the user has a valid version reply.
So all in all it works fine.
This is the 60 sec timer triggered off,
#adding user's nick, ident and ip to record book
addhost ~vchk $nick!$uhost
#verifying user status 60 seconds later
utimer 60 "checkverreply $nick $nick!$uhost"
When the user replys the version,
my script will delhost ~vchk $nick!$uhost.
However I would like to delete off the timer as well when the user replies to version, due to possible join/part floods by some people.
Get the return value of the utimer command and save it. It is the timer id. Pass it to killutimer to stop it.
Also, you should really use [list checkverreply $nick $nick!$uhost] instead of "checkverreply $nick $nick!$uhost" so that it won't kill the bot with a nick like [die].