Code:
on !*:JOIN:#: /whois $nick
raw 319:*: {
  ; Add the channel names here, seperated by a comma
  var %badchans = [color:red]#channel1,#channel2,#channel3[/color]
  ; code
  var %a = 0
  while ($gettok(%badchans, %a, 44)) {
    if ($ifmatch isin $3-) /kick [color:blue]#your_channel[/color] $2 User is in takeover channel
    /inc %a
  }
}


Copy it into wordpad first (Start>>run "wordpad") then copy it from wordpad into mirc. That wayy it keeps it formatting >:P