if ($nick isop $chan) { stuff }

You're actually looking for a person named isop, just change the syntax a little.

Last edited by Belhifet; 16/03/15 12:00 PM.