if ($nick isop $chan) && ($2 ison $chan) {
$2 ison $chan isnt really needed because if $nick isop $chan then they're obviously on the chan