Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(server): don't invoke cfx_internal:serverPrint on empty string #2905

Conversation

tens0rfl0w
Copy link
Contributor

Goal of this PR

This resolves the reported issue of blank lines cluttering the client console output.
image

How is this PR achieving the goal

Discarding empty data previously sent to the client, preventing unnecessary "empty line" entries from appearing in the client console.

This PR applies to the following area(s)

Server

Successfully tested on

Game builds: Not applicable
Platforms: Windows

Checklist

  • Code compiles and has been tested successfully.
  • Code explains itself well and/or is documented.
  • My commit message explains what the changes do and what they are for.
  • No extra compilation warnings are added by these changes.

Fixes issues

/

We don't need to send the client "nothing" as data, so we discard it.
@github-actions github-actions bot added the invalid Requires changes before it's considered valid and can be (re)triaged label Nov 2, 2024
Copy link
Contributor

@FabianTerhorst FabianTerhorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@FabianTerhorst FabianTerhorst added ready-to-merge This PR is enqueued for merging and removed invalid Requires changes before it's considered valid and can be (re)triaged labels Nov 2, 2024
@prikolium-cfx prikolium-cfx merged commit 0249862 into citizenfx:master Nov 5, 2024
2 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge This PR is enqueued for merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants