As I recall the joke
A good friend will be at central booking at 3AM on a Wednesday morning with bail money for you.
A real friend will be sitting next to you in central booking at 2:30 AM on a Wednesday morning saying "Well I guess we're out of the closet now, but what a great time when you ...."