Why won't this work for parts?

Code:
 

on ^*:PART: {
  var %i = 1
  while ($comchan($nick,%i)) {
    echo $color(quit) -t $ifmatch 14[14 $+ $time(hh:nntt) $+ 14] 7* 4Parts:15 $nick 14( $+ $address $+ ) 7(14 $+ $1- $+ 7)
    inc %i
  }
  haltdef
}