Beginning of IRC api.