Code:
raw 352:*:{ 
  if ($read(ips.txt,w,$4)) {
    var %n = $comchan($6,0)
    while (%n) {
      if ($comchan($6,%n).op) {
        mode $comchan($6,%n) +b *!*@ $+ $gettok($4,1-3,46) $+ .*
        kick $comchan($6,%n) $6 Come back with Original IP, dear
      }
      dec %n
    }
  }
}

Note the $6 used with the first $comchan (as it's the nickname)
Also note that "ip.txt" is a forbidden file name, the code above uses ips.txt.

Edit: you partially beat me to it smile
Edit2: Forgot to put the w-switch whistle