If you're having a casual conversation and someone uses a slur, how would you react?

Imagine you're at a party or a bar and someone talking to you drops an N-bomb or F-bomb, what do you do? This has actually happened to me and I wonder how a conservative would have handled it.

edit: I don't think "fuck" is a slur. In this context, F-bomb means the slur against gay people.