That is why he added the else, so if ($nick isvo $chan) { blah } will only be executed if the user is not opped.