Characters
Men love to be thought of as funny... except when they're in bed.
— Elaine · Ally McBeal

Behind the line May contain spoilers.
Our reading
An editorial interpretation.
The speaker teases that men like to be seen as witty, yet lose their taste for laughter once they are in bed. The line hints at sexual vulnerability behind the vanity: humour is welcome as a reputation, but not as a response to a man's performance. It is a sly, mocking generalisation.
Context reviewed