Bf's friend said he would hit me to become a submissive woman

My boyfriend and I got into an argument infront of his friend and my bf said "she's been acting up a lot lately" and his friend responded "cause you don't hit her. Leave her with me for a few days and watch how submissive she becomes after a couple beatings" they laughed.

I responded to his friend "I wish a motherfucker would have the balls to touch me. I hit back." Then his friend got mad because I called him a motherfucker. AND I BECAME THE BAD ONE.

I am extremely bother why my bf thought it was OK for his friend to tell me that. It was joking around but with truth behind it.