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

Case-insensitive server console commands/settings #759

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

ToeKneeRED
Copy link
Contributor

This was previously mentioned in the discord but server console commands should be case-insensitive.
To preserve their capitalization, I decided against saving commands/settings as all lowercase so the /help command would look nicer than many completely lowercase command/setting names.
ex.

  • /set gameserver:spassword pass
  • /UPTIME

It also adds another expected option to BoolifyString.

@Force67
Copy link
Member

Force67 commented Jan 7, 2025

std::string data = "Abc";
std::transform(data.begin(), data.end(), data.begin(),
[](unsigned char c){ return std::tolower(c); });

@Force67 Force67 merged commit 0cc4691 into tiltedphoques:dev Jan 10, 2025
2 checks passed
@ToeKneeRED ToeKneeRED deleted the feat/case-insensitive-console branch January 10, 2025 16:15
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