Pope John Paul II abolished the excommunication penalty for Freemasonry in 1984?

Can you please tell me where to find factual evidence to back this up? I have a friend that has taken his First Degree, but now found out that he can be excommunicated. He is now very confused and feels misled. I have not been able to find any verification on line about your statement. I hope you can help.

placeholder text for bug in Chrome