Excitation energy dependence of the giant dipole resonance in hot nuclei