I didn't mean put your dialogs in a group, I meant your CTCP portion, like this..

Code:
#CTCP off
on @*:join:#:{
 if $($+(%,ctcp,.,$chan),2) && !$($+(%,version.check,.,$address),2) {
 .ctcp $nick VERSION
 set -e $+(%,version.check,.,$address) $chan
 }
 }
on *:ctcpreply:version*:{
  if $($+(%,version.check,.,$address),2) {
    if !$hget(vercheck) { hmake vercheck 10 }
    filter -c CTCP.txt CTCP.txt ?*
    if $filtered { hdel -w vercheck * | hload -n vercheck CTCP.txt }
    if $hfind(vercheck,$strip($2-),1,R).data { ban -k $($+(%,version.check,.,$address),2) $nick 2 14Bad Script Detected }
    halt
  }
}
#CTCP end