Added chat_restoredefaults and fixed function for it