No person shall use the privilege of filing notices hereunder for the purpose of slandering the title to land and in any action brought for the purpose of quieting title to land, if the court shall find that any person has filed a claim for the purpose only of slandering title to such land, he shall award the plaintiff all the costs of such action, including attorney fees to be fixed and allowed to the plaintiff by the court, and all damages that plaintiff may have sustained as the result of such notice of claim having been filed for record.
SDCL 43-30-9