The giant dipole resonance in hot nuclei