I use:
Code:
 if ($left($nick(#,$nick).pnick,1) isin $prefix) && ($left($nick(#,$nick).pnick,1) == ~) 


Change ~ to & if you wanted it for channel admins of course.