compactify ircbas_init a bit