Added in 1.9.7
$parsetype
Returns "in" during a on PARSELINE event if it's a incoming server line, otherwise "out".
Example
on *:PARSELINE:*:echo -ag parsetype is $parsetype