The Rambam 5:20 of the laws of mourning says we learn from the restriction the Torah & the Sages impose on a mourner to refrain from greetings of Peace how careful we should be with our words.
For sure he may not speak excessively or joke around !
Now may be a good time for a gem of Torah study.
www.GemsofTorah.com