There , in 1999-2000 , during the bloody attack by rebels on the capital of Freetown , Richards , then a brigadier and commander of a joint task force , almost single-handedly convinced Tony Blair to restore order to the West African country .