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 Cookie.IsSet() #2218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Alienmario
Copy link
Contributor

Adds a simple QoL method that checks whether a cookie has been set.

@asherkin
Copy link
Member

asherkin commented Nov 10, 2024 via email

@Alienmario
Copy link
Contributor Author

This is just a simple stock I've been using that helps keep client code clear of char arrays. I've assumed that "unset" is equal to "empty string", since plugins have had no way distinguish so far.

Anyway, since GetFloat/GetInt has been added, I've had no use for the original Get.
I think there's room for both changes. One could prompt new players to set their preferences, for example.

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