I still stand by my first statement.
The First Barbary War was from 1801-1805.
The Quasi War with France started in 1798.