Code:
on ^1:CHAT:*: {
  if ($1 === ACTION) { echo -s An action occured }
  else { echo -s An action did not occur }
}

Using the ^ event prefix allows you to compare the unaltered message.