Skip to content

Commit

Permalink
Fix where gender input is always handles as caps
Browse files Browse the repository at this point in the history
  • Loading branch information
enusbaum committed Jan 13, 2024
1 parent afff896 commit 00347eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MBBSEmu/HostProcess/HostRoutines/MenuRoutines.cs
Original file line number Diff line number Diff line change
Expand Up @@ -582,9 +582,9 @@ private void SignupGenderInput(SessionBase session)
{
if (session.GetStatus() != EnumUserStatus.CR_TERMINATED_STRING_AVAILABLE) return;

var inputValue = Encoding.ASCII.GetString(session.InputBuffer.ToArray());
var inputValue = Encoding.ASCII.GetString(session.InputBuffer.ToArray()).ToUpper();

if (inputValue.ToUpper() is not ("M" or "F"))
if (inputValue is not ("M" or "F"))
{
session.SendToClient("\r\n|RED||B|Please enter a valid gender selection ('M' or 'F').\r\n|RESET|".EncodeToANSIArray());
session.SessionState = EnumSessionState.SignupGenderDisplay;
Expand Down

0 comments on commit 00347eb

Please sign in to comment.