To make a script work for people with power, you can do either:
Code:
if ($nick isop $chan) {
or
Code:
 if (!$nick($chan,$nick,rv)) {
That's the only question you ask that makes sense to me.