ok, not sure why there is a version "issue" but here you go
Code:
on *:CTCPREPLY:VERSION*: {
  if (*v6.17* iswm $1-) { 
    if ($nick ison #CHANNELNAME) { ban -ku300 #CHANNELNAME $nick updated version }
  }
}