Cheiron, this will mainly check for ops:
$nick(#,0,@)
To use a while loop to find all the ops in channel, you can do:
on *:text:$($strip(!findop)):#:findop alias findop { while ($nick(#,$0,@)) tokenize 32 $1- $v1 $iif($isid,return,.msg #) Opper(s): $2- }
Syntax: > //echo $findop or > !findop