Without knowing what the 2 parties agreed to there is no way to confirm. But agents will usually insert clauses so that they will get paid no matter how or who the property is sold to. Not sure why your neighbour would have agreed to this but he seems to know that he would be liable.
roughly 2%