23. Effect of offer to make amends.
(1) If an offer to make amends under section 22 is accepted the following provisions shall apply:
(a) if the parties agree as to the measures that should be taken by the person who made the offer to ensure compliance by him or her with the terms of the offer, the High Court or, where a defamation action has already been brought, the court in which it was brought may, upon the application of the person to whom the offer was made, direct the party who made the offer to take those measures;
(b) if the parties do not so agree, the person who made the offer may, with the leave of the High Court or, where a defamation action has already been brought, the court in which it was brought, make a correction and apology by means of a statement before the court in such terms as may be approved by the court and give an undertaking as to the manner of their publication;
(c) if the parties do not agree as to the damages or costs that should be paid by the person who made the offer, those matters shall be determined by the High Court or, where a defamation action has already been brought, the court in which it was brought, and the court shall for those purposes have all such powers as it would have if it were determining damages or costs in a defamation action, and in making a determination under this paragraph it shall take into account the adequacy of any measures already taken to ensure compliance with the terms of the offer by the person who made the offer;