In one of the movies (I believe it was a feature film) there is a scene where Kirk has dialogue with someone about his weaknesses – his historical failings and character flaws. He states something to the effect that he derives great motivation from these imperfections; he NEEDS them (surely said with a grimace and a clenched fist.) He is NOT ashamed. They are what drive him to do the great things he does.
Which movie was that?