Using the pnick property would return all assosciated prefixes, such as @+ if the person was oped and voiced, to simulate the behavior of mIRC's prefixing I'd go for $+([,$iif($left($nick(#,$nick).pnick,1) isin $prefix,$ifmatch),$nick,]) which also overcomes the fact that simply using $nick(#,$nick).pnick will return $null for a query