made irc_create_session() more readable