Skip to content

Fix duplicate 'W' case check in GoldSrc query hook#86

Merged
jkivilin merged 1 commit intomasterfrom
fix-query-hook-case-check
Mar 9, 2026
Merged

Fix duplicate 'W' case check in GoldSrc query hook#86
jkivilin merged 1 commit intomasterfrom
fix-query-hook-case-check

Conversation

@jkivilin
Copy link
Member

@jkivilin jkivilin commented Mar 9, 2026

Summary

  • Fix *msg != 'W' && *msg != 'W' duplicate check to 'W' && 'w' in handle_goldsrc_server_info_reply environment field parsing
  • Add regression test with lowercase 'w' environment byte

Closes #82

The case-insensitive check for 'W'indows environment had 'W'
duplicated instead of 'W' and 'w'. This caused lowercase 'w'
responses to be rejected.

Closes #82
@jkivilin jkivilin merged commit 3d9576b into master Mar 9, 2026
5 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.

Identical sub-expressions: * msg != 'W' && * msg != 'W'

1 participant