That should work.

This is the same...
Code:
ctcp *:*:?: { 
  if $hget([color:maroon]tablename[/color],$replace($1-,$chr(32),$chr(1))) { ctcpreply $nick yourctcp $v1 }  
}
Don't forget to change tablename to the actual tablename wink