One of my favourites of all time.
I agree. It's sad to think that it wouldn't be allowed now if it was written now, there would be a massive uproar.
I don't think my generation would understand that the show isn't racist but it's trying to show how ignorant and bigoted Rigsby is and that's where the humour lies.