Untested:
Code:
 menu channel,nicklist {
  Kick Banned : k_banned $chan
}
alias k_banned {
  var %a = 1, %b = $ibl($1,0)
  while %a <= %b {
    var %c = 1, %d = $nick($1,0)
    while %c <= %d {
      if ($address($nick($1,%c),2) iswm $ibl($1,%a)) && ($nick($1,%c) != $me) {
        if $me isop $1 {
          kick $1 $nick($1,%c) Banned host detected
        }
      }
      inc %c
    }
    inc %a
  }
}
 


Usage: right click in channel or nicklist and select Kick Banned
Will not kick you and requires you to have full ops in the channel