edited tested it and the first nick that started the repeat doesnt get banned

Code
Alias Xpro_check {
  if ($nick(#,$1,a,r)) return
  var %h = $+($md5($lower($strip($2-))),.,$chan,.,$network) 
  if ($hget(Xpro_check,%h) == $null) { hadd -mu5 Xpro_check %h $1 | return }
  mode # +b $address($1,2) | if ($v1 != 1) mode # +b $address($v1,2) | hadd -mu5 Xpro_check %h 1
}