Yes, great to have the marriage details.
www.rootsireland.org free index gives for baptisms 1849 - 1851:
Church Baptism Mahony Richard 1850 Co. Cork
Church Baptism Mahony Richard 1849 Co. Waterford
Church Baptism Mahony Richard 1849 Co. Cork
Church Baptism Mahony Richard 1849 Co. Limerick
Putting James as Richard's father's name gives only the 1849 Co Cork baptism. It costs credits to see the details, but this may be worth it as it will give the townland & parish.
Josey