There's $highlight(N/Text).nicks returning $true/$false if a highlight was set to "match nicknames".
Is there a corresponding property for "match messages", to determine which of the three possible options (match nick/message/both) was set? I didn't find it in the helpfile, or by guessing.

Checking text is ok by something like:
Code:
if ($highlight($nick) && $highlight($nick).nicks) { -- mach nicks -- }
if ($highlight($1-) && ($1- !isnum)) { -- match message -- }

But checking the Nth highlight:
Code:
if ($highlight(N).nicks) { -- match nicks -- }
if ($highlight($highlight(N))) { -- match message -- }

...won't work if the highlight is a regex or identifier