You are doing it correctly, the problem is with this line #51 in charpane.ash
setvar("chit.toolbar.moods", true);
When setting that var mafia expects either a true or false. It takes any other input as false when it is reloaded. changing that line fixes the issue
setvar("chit.toolbar.moods"...