lightirc: add backend code to prevent real name preference from being empty