irc: fix random nick generation with hex string in case irc_nick is not set