See what happens with your parameters in a different order

Code
raw 005:*:{
  if ($istok($2-,WHOX,32)) { hadd -sm WHOX $network 1 }
}