https://en.m.wikipedia.org/wiki/Pros...lic_of_Ireland

It said prostitution is legal but why “ it has been an offence to buy sex”

So is it now offence to buy sex ?

I’m confused , thank you all for the explanation