I saw this story over at the NY Times.

On Friday night, the comedian Bernie Mac, a longtime friend and supporter of Senator Barack Obama, set out to entertain a crowd at a $2,300-a-head Obama fund-raising event with humor touching on issues like menopause and prostitution. But by the time Mr. Mac was wrapping up his remarks, some in the crowd had turned on him, and when Mr. Obama took the stage, he told the comedian to “clean up your act.”

Something similar happens in the West Wing. C.J. Cregg (Allison Janney) treads lightly when she is dispatched to New York to dissuade a comedian, Corey Sykes (Rocky Carroll), who once uttered a well-publicized but offensive joke in the President's presence from performing at the annual Will Rogers dinner.

In the West Wing the line was the Bartlet didn't laugh at the joke when he did. And here in real life Obama is joking about telling a comedian to clean up his act.