*Chris Brown and former B2K member Raz B got in a nasty Twitter fight yesterday over comments having to do with Rihanna and Halle Berry.

According to TMZ, the whole thing started when Raz tweeted Brown, “Im just sittin here Thinking how can n**gas like [Eric Benet] and [Chris Brown] disrespect women as Intelligent as Halle Berry, Rihanna.”

Brown immediately responded, “n**ga you want attention! Grow up n**ga!!! Dick in da booty ass lil boy.”

Brown’s comment appears to reference allegations Raz made a while back — in which he claimed he was molested by his band’s male manager.

Chris continued his attack — and then tried to explain himself … tweeting, “I’m not homophobic! He’s just disrespectful!!!”

The Twitter fight comes just nine days after Brown tweeted a photo of his diploma from his court-ordered anger management program.  He remains on probation for another couple of years.