State Rep. Brian Sims (D-Pa.), an openly gay politician, called out the troll's actions after the hateful post.

A Pennsylvania lawmaker called an Internet troll's grandmother after the man wrote him a hateful Facebook message.

Rep. Brian Sims (D-Pa.) usually checks his messages in the morning, but on Wednesday, he came across nasty slurs on his wall.

"N----r f----t," the troll, identified as David, wrote.

Sims, who is openly gay, then responded with: "Dear Bigots, posting your grandmother's telephone number all over the same page you use to post slurs on other people's pages is not going to end well for you."

Sims eventually spoke with the man, but said their conversation "didn't resolve anything."

The Philadelphia-based Sims, who's a civil and gay rights advocate, took to Facebook on Thursday to encourage his base to stand up against injustices.

"GET INVOLVED: A lot of people are paying attention to my page right now and so I want to simply say that if you liked what I had to say, or how I said it, then let's get more people like me into our government!"