the commander of the faithful , al-muqtadir , as many know , was not a strong and just caliph , but drawn to pleasures and the flattering speeches of his officers , who played him the fool and jested mightily behind his back .