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

Add set_game_tags #193

Merged
merged 3 commits into from
Jul 24, 2024
Merged

Add set_game_tags #193

merged 3 commits into from
Jul 24, 2024

Conversation

ymo-4
Copy link
Contributor

@ymo-4 ymo-4 commented Jul 18, 2024

No description provided.

@ymo-4
Copy link
Contributor Author

ymo-4 commented Jul 23, 2024

I'm also unsure about asserts. While docs saying that tags string can not be longer then 128 symbols (127 + \0), it is still possible to set string with more then above said length. However tags string returned by PingServer after that will still be truncated to 127 + \0 symbols. So the question is should we check the string length?

@Noxime
Copy link
Owner

Noxime commented Jul 24, 2024

Thanks for the PR. Since its unintuitive and error prone to silently have your strings truncated, I would say you should assert the length

@Noxime Noxime merged commit deeb56d into Noxime:master Jul 24, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants