Former two-weight world champion Paulie Malignaggi has been helping Conor McGregor ahead of the Floyd Mayweather fight.