Update class.format.php

Make formatting @username mentions adhere to config settings.